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.

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.)

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.)

items

Returns an array of all items in this selection.

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

Returns an array of all links in this selection.

Locked

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

nodes

Returns an array of all nodes in this selection.

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.)

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 the style associated with the item. (Inherited from DiagramItem.)

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 an item to the Selection.

allowDrag

DiagramItem.allowDrag override.

clear

Removes all items from the selection.

Clone

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

ContainsPoint

Overloaded. Determines whether this item contains the specified point. (Inherited from DiagramItem.)

Dispose

Overloaded.   (Inherited from DiagramItem.)

DoModify

For internal use. (Inherited from DiagramItem.)

Draw

Draws the item on the specified IGraphics surface. (Inherited from DiagramItem.)

DrawHandles

Renders the adjustment handles of this item. (Inherited from DiagramItem.)

DrawShadow

Draws the shadow of this item on the specified IGraphics surface. (Inherited from DiagramItem.)

endDrag

DiagramItem.endDrag override.

getBounds

Gets a rectangle that defines the position of the selection frame.

GetBounds

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

GetEffectiveBrush

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

GetEffectivePen

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

GetEffectiveShadowBrush

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

GetEffectiveTextBrush

Creates a System.Drawing.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

Gets the repaint region for this item, taking into account factors such as pen, selection handles and shadow. (Inherited from DiagramItem.)

GetRotatedBounds

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

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

Determines whether a selection handle of this item is located at the specified point. (Inherited from DiagramItem.)

HitTestManipulators

Finds the Manipulator object located at the 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.)

onRemove

DiagramItem.onRemove override.

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 Diagram.

RestoreItemProperties

For internal use. (Inherited from DiagramItem.)

SaveItemProperties

For internal use. (Inherited from DiagramItem.)

saveLocationState

DiagramItem.saveLocationState override.

startDrag

DiagramItem.startDrag override.

updateDrag

DiagramItem.updateDrag override.

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

Invoked during interactive creation of items to test whether the operation can be completed in the current context. (Inherited from DiagramItem.)

AllowModify

Invoked during interactive modification of items to test whether the operation can be completed in the current context. (Inherited from DiagramItem.)

CancelModify

Invoked when the interactive modification of this object has been canceled. (Inherited from DiagramItem.)

CompleteCreate

Invoked when the item creation has been completed. (Inherited from DiagramItem.)

CompleteModify

Invoked when the item modification has been completed. (Inherited from DiagramItem.)

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

Called when the item is completely disassociated from a Diagram, that is, when it is no longer referenced from an item collection or the undo/redo history. (Inherited from DiagramItem.)

GetValue

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

LoadFrom

Deserializes the item from the specified reader. (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.)

SaveTo

Serializes the item to the specified writer. (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.)

SetReference

Called during deserialization, after all objects have been instantiated, in order to update the references between them. (Inherited from DiagramItem.)

ShouldRender

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

StartCreate

Invoked once when the user starts creating a new item interactively. (Inherited from DiagramItem.)

StartModify

Invoked when the user starts modifying this item interactively. (Inherited from DiagramItem.)

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

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

 See Also