Search
Selection Members
Constructors Fields Properties Methods
 


Represents a set of items selected in the diagram document.

The following tables list the members exposed by the Selection type.

 Public Constructors

  Name Description

Selection

Initializes a new instance of the Selection class.

 Protected Fields

  Name Description

disposed

For internal use. (Inherited from DiagramItem.)

 Public Properties

  Name Description

AllowMultipleSelection

Gets or sets a value indicating whether more than one items can be selected simultaneously.

Bounds

Gets the rectangle that bounds all selected items.

Brush

Gets or sets the brush used to fill the interior of this item. (Inherited from DiagramItem.)

EffectiveBrush

Gets the effective brush of the item. (Inherited from DiagramItem.)

EffectiveFont

Gets the currently effective font of the item. (Inherited from DiagramItem.)

EffectivePen

Gets the effective pen of the item. (Inherited from DiagramItem.)

EffectiveShadowBrush

Gets the effective shadow brush of the item. (Inherited from DiagramItem.)

EffectiveTextBrush

Gets the effective text brush of the item. (Inherited from DiagramItem.)

ExtendMode

Gets or sets whether to prevent deselecting currently selected items when they are outside of a newly drawn lasso rectangle.

Font

Gets or sets the font used to render the item's text. (Inherited from DiagramItem.)

HyperLink

Gets or sets the hyperlink associated with this diagram item. (Inherited from DiagramItem.)

Id

Gets or sets user-defined identifier associated with this item. (Inherited from DiagramItem.)

IgnoreLayout

Gets or sets a value indicating whether the position of this item should not be changed by automatic layout methods. (Inherited from DiagramItem.)

IncludeItemsIfIntersect

Gets or sets a value indicating which items are selected when drawing a selection rectangle.

Items

Gets a collection of all selected items.

LayerIndex

Gets or sets the zero-based index of the layer this item is associated with, or -1, if the item is not associated with a layer. (Inherited from DiagramItem.)

LayoutTraits

Contains layout properties of the node, used by some layout algorithms and by DiagramView3D. (Inherited from DiagramItem.)

Links

Gets the collection of all links in the selection.

Locked

Gets or sets a value indicating whether users are allowed to edit the diagram item. (Inherited from DiagramItem.)

Nodes

Gets a collection of all selected nodes.

Opacity

Gets or sets the opacity of this item. (Inherited from DiagramItem.)

Parent

Gets the diagram that contains this item. (Inherited from DiagramItem.)

Pen

Gets or sets the pen used to paint the frame of the item. (Inherited from DiagramItem.)

Printable

Gets or sets a value indicating whether to print the item. (Inherited from DiagramItem.)

RuntimeIndex

For internal use. (Inherited from DiagramItem.)

Selected

Gets or sets a value indicating whether a diagram item is selected. (Inherited from DiagramItem.)

SetsDirtyFlag

Gets or sets a value indicating whether the diagram's Dirty flag should be set when selection changes.

ShadowBrush

Gets or sets the brush used to paint the item's shadow. (Inherited from DiagramItem.)

ShadowOffsetX

Gets or sets the horizontal offset of the shadow of this item. (Inherited from DiagramItem.)

ShadowOffsetY

Gets or sets the vertical offset of the shadow of this item. (Inherited from DiagramItem.)

Style

Gets or sets a value indicating how to display multiple selection of items.

SubordinateGroup

Gets a reference to the group of items that are attached to this one. (Inherited from DiagramItem.)

Tag

Gets or sets user-defined data associated with this item. (Inherited from DiagramItem.)

Text

Gets or sets the text displayed by this item. (Inherited from DiagramItem.)

TextBrush

Gets or sets the brush used to paint texts inside the item. (Inherited from DiagramItem.)

TextFormat

Gets or sets the alignment of text displayed inside this item. (Inherited from DiagramItem.)

TextPadding

Gets or sets the spacing between the item boundaries and its text. (Inherited from DiagramItem.)

ToolTip

Gets or sets a short text message displayed when the mouse pointer rests over the diagram element. (Inherited from DiagramItem.)

TopLevel

True if this is a top-level item in the diagram, or false if it is inside a container. (Inherited from DiagramItem.)

Visible

Gets or sets a value indicating whether this item is visible. (Inherited from DiagramItem.)

Weight

Gets or sets a weight value used in layout and path-finding algorithms. (Inherited from DiagramItem.)

ZIndex

Gets or sets the z-order position of this item. (Inherited from DiagramItem.)

 Protected Properties

  Name Description

MeasureUnit

Returns the diagram measure unit. (Inherited from DiagramItem.)

 Public Methods

  Name Description

AddItem

Adds a new item to the current selection.

Animate

Animates the item. (Inherited from DiagramItem.)

Change

Selects an item and deselects all others.

Clear

Removes all items from the selection.

Clone

Creates a copy of this item. (Inherited from DiagramItem.)

ContainsPoint

Overloaded.  

Dispose

Overloaded.   (Inherited from DiagramItem.)

DoModify

For internal use. (Inherited from DiagramItem.)

Draw

DiagramItem.Draw override.

DrawHandles

DiagramItem.DrawHandles override.

DrawShadow

DiagramItem.DrawShadow override.

GetBounds

Gets the bounding rectangle of this item. (Inherited from DiagramItem.)

GetEffectiveBrush

Creates a Brush object representing the currently effective brush of the item. (Inherited from DiagramItem.)

GetEffectivePen

Returns a Pen object representing the currently effective pen of the item. (Inherited from DiagramItem.)

GetEffectiveShadowBrush

Returns a Brush object representing the currently effective shadow brush of the item. (Inherited from DiagramItem.)

GetEffectiveTextBrush

Returns a Brush object representing the currently effective text brush of the item. (Inherited from DiagramItem.)

GetOutlinePoly

Gets a polygon approximating the outline of this object. (Inherited from DiagramItem.)

GetRepaintRect

DiagramItem.GetRepaintRect override.

GetRotatedBounds

Gets the bounding rectangle of this item when it is rotated. (Inherited from DiagramItem.)

GetSize

Gets the number of selected items.

GetToolTip

Gets the tooltip that should be displayed for this item at the specified point. (Inherited from DiagramItem.)

HitTest

Returns the diagram item that contains the specified point. (Inherited from DiagramItem.)

HitTestHandle

DiagramItem.HitTestHandle override.

HitTestManipulators

Finds the Manipulator object located at the specified point. (Inherited from DiagramItem.)

LabelFromPoint

Returns the ItemLabel located at specified point. (Inherited from DiagramItem.)

NotInteractive

Gets whether the user is prevented from manipulating this item. (Inherited from DiagramItem.)

NowModifying

Gets a flag indicating whether this object is being currently modified interactively by the user. (Inherited from DiagramItem.)

OnLoad

Called after successful deserialization. (Inherited from DiagramItem.)

Query

Returns the items that can be reached from this item by following the path specified in the given query expression. (Inherited from DiagramItem.)

RemoveItem

Removes an item from the selection.

RestoreItemProperties

For internal use. (Inherited from DiagramItem.)

SaveItemProperties

For internal use. (Inherited from DiagramItem.)

Toggle

Toggles the selection state of an item.

ZBottom

Moves the item to the bottom of the z-order. (Inherited from DiagramItem.)

ZLevelDown

Moves the item one level down in the z-order. (Inherited from DiagramItem.)

ZLevelUp

Moves the item one level up in the z-order. (Inherited from DiagramItem.)

ZTop

Moves the item to the top of the z-order. (Inherited from DiagramItem.)

 Protected Methods

  Name Description

AddManipulator

Adds the specified manipulator to this object. (Inherited from DiagramItem.)

AllowCreate

DiagramItem.AllowCreate override.

AllowModify

DiagramItem.AllowModify override.

CancelModify

DiagramItem.CancelModify override.

CompleteCreate

DiagramItem.CompleteCreate override.

CompleteModify

DiagramItem.CompleteModify override.

CreateProperties

Creates an item property set corresponding to the type of this diagram item. (Inherited from DiagramItem.)

CreateState

Creates an item state corresponding to the type of this diagram item. (Inherited from DiagramItem.)

DrawManipulators

Overloaded. Draws the associated manipulators on a specified graphics. (Inherited from DiagramItem.)

Finalize

DiagramItem finalizer. (Inherited from DiagramItem.)

FreeResources

DiagramItem.FreeResources override.

GetValue

Gets the effective value of the style property with the specified name. (Inherited from DiagramItem.)

LoadFromJson

Loads the item from a JSON object. (Inherited from DiagramItem.)

LoadFromXml

Loads the item content from an XML element. (Inherited from DiagramItem.)

LoadObsolete

For internal use. (Inherited from DiagramItem.)

OnAdd

Called when the item is added to a Diagram, either by the user, programmatically or via undo / redo. (Inherited from DiagramItem.)

OnChildModified

Called when a group child node has been modified. (Inherited from DiagramItem.)

OnClick

Invoked when the user clicks this item. (Inherited from DiagramItem.)

OnDoubleClick

Invoked when the user double-clicks this item. (Inherited from DiagramItem.)

OnMeasureUnitChanged

Called when the diagram's MeasureUnit changes. (Inherited from DiagramItem.)

OnRemove

Called when an item is removed from a Diagram, either by the user, programmatically or via undo / redo. (Inherited from DiagramItem.)

OnStyleChanged

Invoked when the associated style or theme have changed. (Inherited from DiagramItem.)

OnTextChanged

Called when the value of the Text property changes. (Inherited from DiagramItem.)

OnTextFormatChanged

Called when the value of the TextFormat property changes. (Inherited from DiagramItem.)

OnZoomChanged

Called when the diagram's ZoomFactor changes. (Inherited from DiagramItem.)

RemoveManipulator

Removes the specified manipulator from the object. (Inherited from DiagramItem.)

Repaint

Overloaded.   (Inherited from DiagramItem.)

RestoreProperties

Restores the properties of this diagram item. (Inherited from DiagramItem.)

RestoreState

Restores the state of this diagram item. (Inherited from DiagramItem.)

SaveProperties

Saves the properties of this diagram item. (Inherited from DiagramItem.)

SaveState

Saves the state of this diagram item. (Inherited from DiagramItem.)

SaveToJson

Saves the item as a JSON object. (Inherited from DiagramItem.)

SaveToXml

Saves the item content into an XML element. (Inherited from DiagramItem.)

SetDiagramDirty

Marks the diagram as changed. (Inherited from DiagramItem.)

SetExpanded

Sets whether the item is in expanded or collapsed state. (Inherited from DiagramItem.)

ShouldRender

Determines whether the item should be rendered in the current context. (Inherited from DiagramItem.)

StartCreate

DiagramItem.StartCreate override.

StartModify

DiagramItem.StartModify override.

UpdateCreate

Invoked during interactive creation of this item. (Inherited from DiagramItem.)

UpdateGroup

Called to update the positions of subordinate nodes attached to this item when the attachment style is set to ControlledByMaster. (Inherited from DiagramItem.)

UpdateModify

DiagramItem.UpdateModify override.

 See Also