Search
Selection Members
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 Fields

  Name Description

BrushProperty

Idendifies the Brush dependency property. (Inherited from DiagramItem.)

FontFamilyProperty

Identifies the FontFamily dependency property. (Inherited from DiagramItem.)

FontSizeProperty

Identifies the FontSize dependency property. (Inherited from DiagramItem.)

FontStretchProperty

Identifies the FontStretch dependency property. (Inherited from DiagramItem.)

FontStyleProperty

Identifies the FontStyle dependency property. (Inherited from DiagramItem.)

FontWeightProperty

Identifies the FontWeight dependency property. (Inherited from DiagramItem.)

IdProperty

Identifies the Id dependency property. (Inherited from DiagramItem.)

StrokeDashCapProperty

Identifies the StrokeDashCap dependency property. (Inherited from DiagramItem.)

StrokeDashStyleProperty

Identifies the StrokeDashStyle dependency property. (Inherited from DiagramItem.)

StrokeEndLineCapProperty

Identifies the StrokeEndLineCap dependency property. (Inherited from DiagramItem.)

StrokeLineJoinProperty

Identifies the StrokeLineJoin dependency property. (Inherited from DiagramItem.)

StrokeMiterLimitProperty

Identifies the StrokeMiterLimit dependency property. (Inherited from DiagramItem.)

StrokeProperty

Identifies the Stroke dependency property. (Inherited from DiagramItem.)

StrokeStartLineCapProperty

Identifies the StrokeStartLineCap dependency property. (Inherited from DiagramItem.)

StrokeThicknessProperty

Identifies the StrokeThickness dependency property. (Inherited from DiagramItem.)

TextAlignmentProperty

Identifies the TextAlignment dependency property. (Inherited from DiagramItem.)

TextBrushProperty

Identifies the TextBrush dependency property. (Inherited from DiagramItem.)

TextDecorationsProperty

Identifies the TextDecorations dependency property. (Inherited from DiagramItem.)

TextPaddingProperty

Identifies the TextPadding dependency property. (Inherited from DiagramItem.)

TextProperty

Identifies the Text dependency property. (Inherited from DiagramItem.)

TextTrimmingProperty

Identifies the TextTrimming dependency property. (Inherited from DiagramItem.)

TextVerticalAlignmentProperty

Identifies the TextVerticalAlignment dependency property. (Inherited from DiagramItem.)

TextWrappingProperty

Identifies the TextWrapping dependency property. (Inherited from DiagramItem.)

TransformProperty

The Transform dependency property. (Inherited from DiagramItem.)

 Protected Fields

  Name Description

disposed

For internal use. (Inherited from DiagramItem.)

 Public Properties

  Name Description

Adorner

A Visual that contains the item's adjustment handles. (Inherited from DiagramItem.)

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

ConstrainedHeight

Gets whether text layout area has limited height. (Inherited from DiagramItem.)

ExtendMode

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

FontFamily

Gets or sets the preferred font family for this DiagramItem. (Inherited from DiagramItem.)

FontSize

Gets or sets the font size for this DiagramItem. (Inherited from DiagramItem.)

FontStretch

Gets or sets the font-stretching characteristics for this DiagramItem. (Inherited from DiagramItem.)

FontStyle

Gets or sets the font style for this DiagramItem. (Inherited from DiagramItem.)

FontWeight

Gets or sets the font weight for this DiagramItem. (Inherited from DiagramItem.)

FreeFormMode

Gets or sets a value indicating whether selection lasso should be drawn in free-form mode.

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.

KeepInsideDiagram

Gets or sets whether the selection should be constrained by diagram boundaries when moving multiple 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 properties specific to each layout algorithm. (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.

Parent

Gets the diagram that contains this 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.

Stroke

Gets or sets the Brush that specifies how the item outline is painted. (Inherited from DiagramItem.)

StrokeDashCap

Gets or sets a PenLineCap enumeration value that specifies how the ends of a dash are drawn. (Inherited from DiagramItem.)

StrokeDashStyle

Gets or sets the pattern of dashes and gaps used to outline items. (Inherited from DiagramItem.)

StrokeEndLineCap

Gets or sets a PenLineCap enumeration value that specifies what shape to draw at the end of a Stroke. (Inherited from DiagramItem.)

StrokeLineJoin

Gets or sets a PenLineJoin enumeration value that specifies the type of join that is used at the vertices of the item's outline. (Inherited from DiagramItem.)

StrokeMiterLimit

Gets or sets a limit on the ratio of the miter length to half the StrokeThickness of an item outline element. (Inherited from DiagramItem.)

StrokeStartLineCap

Gets or sets a PenLineCap enumeration value that specifies what shape to draw at the start of a Stroke. (Inherited from DiagramItem.)

StrokeThickness

Gets or sets the width of the DiagramItem stroke outline. (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.)

Text

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

TextAlignment

Gets or sets a value that indicates the horizontal alignment of text content. (Inherited from DiagramItem.)

TextBrush

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

TextDecorations

Gets or sets the effects to apply to the text of this DiagramItem. (Inherited from DiagramItem.)

TextPadding

Gets or sets the thickness of padding space between the item boundaries and its text. (Inherited from DiagramItem.)

TextTrimming

Gets or sets the text trimming to employ when text overflows the item area. (Inherited from DiagramItem.)

TextVerticalAlignment

Gets or sets a value that indicates the vertical alignment of text content. (Inherited from DiagramItem.)

TextWrapping

Gets or sets how this DiagramItem should wrap text. (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.)

Transform

Gets or sets a transform that will be applied to the item's presenter. (Inherited from DiagramItem.)

UIElement

Gets the UIElement associated with this DiagramItem. (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.)

Size

Gets the size of this item. (Inherited from DiagramItem.)

 Public Methods

  Name Description

AddItem

Adds a new item to the current selection.

Change

Selects an item and deselects all others.

Clear

Removes all items from the selection.

ClearStyleableProperties

Clears the local values of all styleable appearance properties. (Inherited from DiagramItem.)

Clone

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

ContainsPoint

Overloaded.  

Dispose

Overloaded.   (Inherited from DiagramItem.)

Draw

DiagramItem.Draw override.

DrawHandles

DiagramItem.DrawHandles override.

GetBounds

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

GetRegion

Returns a Geometry object representing the shape of this item. (Inherited from DiagramItem.)

GetRepaintRect

DiagramItem.GetRepaintRect override.

GetRotatedBounds

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

GetRotationAngle

Gets the item rotation angle. (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

Triggers the manipulator located at the specified point. (Inherited from DiagramItem.)

Intersects

Checks whether the specified rectangle intersects with this diagram item. (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.)

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.

Repaint

Overloaded.   (Inherited from DiagramItem.)

Toggle

Toggles the selection state of an item.

TransformDiagramToItem

Transforms a point from document coordinates to item coordinates. (Inherited from DiagramItem.)

TransformItemToDiagram

Transforms point from item-relative coordinates to document coordinates. (Inherited from DiagramItem.)

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

AddToVisualContainer

Adds this item to specified container element. (Inherited from DiagramItem.)

AllowCreate

DiagramItem.AllowCreate override.

AllowModify

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

CreateRenderer

DiagramItem.CreateRenderer override.

CreateState

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

DrawManipulators

Draws the associated manipulators in the specified context. (Inherited from DiagramItem.)

EnumStyleableProperties

Applies specified function on properties intended to be set from WPF styles. (Inherited from DiagramItem.)

FreeResources

DiagramItem.FreeResources override.

GetHeight

Gets the height of this item. (Inherited from DiagramItem.)

GetTextRect

Subtracts the TextPadding values from the specified rectangle. (Inherited from DiagramItem.)

GetWidth

Gets the width of this item. (Inherited from DiagramItem.)

GetX

Gets the x-coordinate of the current position of this item. (Inherited from DiagramItem.)

GetY

Gets the y-coordinate of the current position of this item. (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.)

MeasureOverride

FrameworkElement.MeasureOverride override. (Inherited from DiagramItem.)

OnAdd

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

OnAppearanceChanged

Invoked when any of the item's appearance properties changes. (Inherited from DiagramItem.)

OnChildModified

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

OnChildModifying

Called when a child node is being modified. (Inherited from DiagramItem.)

OnLoad

Called after successful deserialization. (Inherited from DiagramItem.)

OnMeasureUnitChanged

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

OnMouseDown

UIElement.OnMouseDown override. (Inherited from DiagramItem.)

OnMouseUp

UIElement.OnMouseUp override. (Inherited from DiagramItem.)

OnPositioningChanged

Called when the item's position changes. (Inherited from DiagramItem.)

OnPreviewMouseDown

UIElement.OnPreviewMouseWheel override. (Inherited from DiagramItem.)

OnPreviewMouseUp

UIElement.OnPreviewMouseUp override. (Inherited from DiagramItem.)

OnRemove

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

OnRender

UIElement.OnRender override. (Inherited from DiagramItem.)

OnSerializablePropertyChanged

Invoked when a FrameworkElement property serializable by DiagramItem changes. (Inherited from DiagramItem.)

OnSizeChanged

Called when the size of the item changes. (Inherited from DiagramItem.)

OnStrokeAttributeChanged

Invoked when any of the item's stroke attributes changes. (Inherited from DiagramItem.)

OnTextAttributeChanged

Invoked when any of the attributes defined in ITextAttributes changes. (Inherited from DiagramItem.)

OnZoomChanged

Called when the ZoomFactor changes. (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

DiagramItem.UpdateCreate override.

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