Class LayerPanelState
LayerControl이 보여 주는 상태를 ID로 기록한 값입니다. 들어가 있는 그룹들과 그 수준의 포커스 행, 다중 선택을 담습니다.
public sealed class LayerPanelState
- 상속
-
LayerPanelState
- 상속된 멤버
설명
CapturePanelState()로 기록하고, 지도의 트리를 다시 만든 뒤(레이어 트리 적용) RestorePanelState(LayerPanelState, IReadOnlyList<MapLayerInfo>, Func<string, IReadOnlyList<MapLayerInfo>?>, IReadOnlyList<string>?)로 되돌립니다.
생성자
LayerPanelState(IReadOnlyList<string>, string?, IReadOnlyList<string>)
패널 상태 값을 만듭니다.
public LayerPanelState(IReadOnlyList<string> groupPath, string? focusLayerId, IReadOnlyList<string> selectedLayerIds)
매개변수
groupPathIReadOnlyList<string>들어가 있는 그룹 ID들입니다. 바깥쪽부터이며 최상위 수준이면 빈 목록입니다.
focusLayerIdstring포커스(현재) 행의 레이어 ID입니다. 없으면
null입니다.selectedLayerIdsIReadOnlyList<string>표시 중인 수준에서 선택된 행의 ID입니다. 행 순서입니다.
예외
- ArgumentNullException
groupPath또는selectedLayerIds가null입니다.
속성
CurrentGroupId
자식이 표시되고 있는 그룹의 ID입니다.
public string? CurrentGroupId { get; }
속성 값
FocusLayerId
포커스(현재) 행의 레이어 ID입니다.
public string? FocusLayerId { get; }
속성 값
- string
레이어 ID이며, 포커스 행이 없으면
null입니다.
GroupPath
들어가 있는 그룹 ID들입니다.
public IReadOnlyList<string> GroupPath { get; }
속성 값
- IReadOnlyList<string>
바깥쪽 그룹부터의 순서입니다. 최상위 수준이면 빈 목록입니다.
SelectedLayerIds
표시 중인 수준에서 선택된 행의 레이어 ID입니다.
public IReadOnlyList<string> SelectedLayerIds { get; }
속성 값
- IReadOnlyList<string>
행 순서의 ID 목록입니다.