User Tools

Site Tools


api:dk11:net:tatukgis.ndk.winforms.tgis_controllegend

TGIS_ControlLegend class

DK11 for .NET | TatukGIS.NDK.WinForms.TGIS_ControlLegend | Classes | Constructors | Methods | Properties | Events

Visual Legend component.

Available also on: Delphi FMX | Delphi VCL | .NET WPF | Java.

Syntax

// C#
public class TGIS_ControlLegend : TreeView, IGIS_Subscribe, IGIS_PrintableControl 
{
}
' VisualBasic
Public Class TGIS_ControlLegend
  Inherits TreeView
  Implements IGIS_Subscribe
  Implements IGIS_PrintableControl
End Class
// Oxygene
type
  [Description('Visual Legend component.')]
  [ToolboxBitmap(typeOf(TGIS_ControlLegend))]
  TGIS_ControlLegend = public class( TreeView, IGIS_Subscribe, IGIS_PrintableControl )
  end;

Inheritance

→ TreeView

Implements

Constructors

Inherited Overrides Protected
Name Visibility Description
TGIS_ControlLegend() public Constructor, creates an instance.

Methods

Inherited Overrides Protected
Name Visibility Description
Collapse(IGIS_HierarchyGroup) public Collapses a legend item corresponding to a hierarchy group.
Collapse(IGIS_HierarchyGroup, bool, bool) public Collapses a legend item corresponding to a hierarchy group.
Collapse(TGIS_Layer) public Collapses a legend item corresponding to a layer.
DefWndProc protected See MSDN .NET documentation
Dispose protected
doChange protected Overwrites the default node selection model.
doChanging protected Overwrites the default node selection model.
doCollapsing protected Overwrites the default node collapse control.
doCustomDraw protected Overwrites the default drawing routine.
doExpanding protected Overwrites the default node expansion control.
doMouseLeave protected Overwrites the default behavior when the user moves the mouse outside of the control.
doSubscribedUpdate protected Updates the legend when a full repaint is requested by the attached TGIS_ViewerWnd.
doTimer protected The event which updates the attached TGIS_ViewerWnd, delayed.
Expand(IGIS_HierarchyGroup) public Expands of a legend item corresponding to a hierarchy group.
Expand(IGIS_HierarchyGroup, bool, bool) public Expands a legend item corresponding to a hierarchy group.
Expand(TGIS_Layer) public Expands a legend item corresponding to a layer.
InvalidateItems public Forces invalidation of all the legend items.
IsExpanded(IGIS_HierarchyGroup) public Checks if the legend item associated with the specific hierarchy group is expanded.
IsExpanded(TGIS_Layer) public Checks if the legend item associated with the specific layer is expanded.
OnDoubleClick protected Overrides the default double-click event behavior.
OnKeyDown protected Overrides the default KeyDown event behavior.
OnMouseDown protected Overrides the default MouseDown event behavior.
OnMouseMove protected Overrides the default MouseMove event behavior.
OnMouseUp protected Overrides the default MouseUp event behavior.
OnPaint protected
OnResize protected
OnTapDouble protected Event handler of the double tap action.
OnTapLong protected Event handler of the long tap action.
OnTapSingle protected Event handler of the single tap action.
PrintBmp public Print the control on the given bitmap.
(Implements IGIS_PrintableControl.PrintBmp)
PrintClipboard public Prints the current state of the legend to the clipboard as a bitmap.
SubscribedEvent public Subscriber notification event.
(Implements IGIS_Subscribe.SubscribedEvent)
WndProc protected See MSDN .NET documentation

Properties

Inherited Protected
Name Visibility Description
CompactView public If True then the legend view is compacted - icons are smaller.
DialogOptions public Options defining dialogs behavior.
GIS_Group public Selected group.
GIS_Layer public Selected layer.
GIS_Viewer public Attached TGIS_ViewerWnd control.
Mode public Mode of the legend - list of layers or grouped tree view.
Options public Options of the legend.
ReverseOrder public True if the order of legend entries in the Layer mode should be reverse, i.e.
RightToLeft public
RightToLeftFromTranslation public Decides where use RightToLeft from property or from translation
RightToLeftLayout public

Events

Inherited Protected
Name Visibility Description
LayerActiveChangeEvent public Event fired when a layer is activated/deactivated.
LayerParamsChangeEvent public Event fired when a layer parameters get changed.
LayerSelectEvent public Event fired upon layer selection.
OpenDialogEvent public Event fired upon opening of the layer properties dialog box.
OrderChangeEvent public Event fired upon the change of the order of layers.
TapDoubleEvent public TapDouble event.
TapLongEvent public TapLong event.
TapSimpleEvent public TapSimple event.

Remarks

Place this component on a form and connect GIS_Viewer to TGIS_ViewerWnd. Selected layer is available via GIS_Layer property.

References

2019/06/26 01:16