NodeShape Class
Represents a shape on a diagram, such as a rectangle, icon or other shape with an area (not a connector).
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.ModelElement
Microsoft.VisualStudio.Modeling.Diagrams.PresentationElement
Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
Microsoft.VisualStudio.Modeling.Diagrams.NodeShape
More...
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.DisplayName", _
GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.Description", _
GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DomainModelOwnerAttribute(GetType(CoreDesignSurfaceDomainModel))> _
<CLSCompliantAttribute(True)> _
<DomainObjectIdAttribute("d2cd161b-6baa-4ed6-bd22-478b365502dc")> _
Public MustInherit Class NodeShape _
Inherits ShapeElement _
Implements INodeGeometryData
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.DisplayName",
typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.Description",
typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DomainModelOwnerAttribute(typeof(CoreDesignSurfaceDomainModel))]
[CLSCompliantAttribute(true)]
[DomainObjectIdAttribute("d2cd161b-6baa-4ed6-bd22-478b365502dc")]
public abstract class NodeShape : ShapeElement,
INodeGeometryData
[DisplayNameResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.DisplayName",
typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.Description",
typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DomainModelOwnerAttribute(typeof(CoreDesignSurfaceDomainModel))]
[CLSCompliantAttribute(true)]
[DomainObjectIdAttribute(L"d2cd161b-6baa-4ed6-bd22-478b365502dc")]
public ref class NodeShape abstract : public ShapeElement,
INodeGeometryData
[<AbstractClass>]
[<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.DisplayName",
typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")>]
[<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.Description",
typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")>]
[<DomainModelOwnerAttribute(typeof(CoreDesignSurfaceDomainModel))>]
[<CLSCompliantAttribute(true)>]
[<DomainObjectIdAttribute("d2cd161b-6baa-4ed6-bd22-478b365502dc")>]
type NodeShape =
class
inherit ShapeElement
interface INodeGeometryData
end
public abstract class NodeShape extends ShapeElement implements INodeGeometryData
The NodeShape type exposes the following members.
Constructors
Name | Description | |
---|---|---|
NodeShape | Initializes a new instance of the NodeShape class. |
Top
Properties
Name | Description | |
---|---|---|
AbsoluteBoundingBox | The bounding rectangle of the shape, measured relative to the Diagram. (Overrides ShapeElement.AbsoluteBoundingBox.) | |
AbsoluteBoundingBoxToEnsureVisible | Gets the absolute bounding rectangle for DiagramClientView.EnsureVisible. (Inherited from ShapeElement.) | |
AbsoluteBounds | A domain property that gets or sets the size and position of the bounding rectangle of the shape, measured relative to the top left of the diagram. | |
AbsoluteCenter | Gets the point in the center of the shape. (Inherited from ShapeElement.) | |
AccessibilityObject | Gets the accessibility object for the shape. (Inherited from ShapeElement.) | |
AccessibleDefaultActionDescription | Gets the default action description for the shape. (Inherited from ShapeElement.) | |
AccessibleDescription | Gets the description for the shape. (Inherited from ShapeElement.) | |
AccessibleHelp | Gets the Help for the shape. (Inherited from ShapeElement.) | |
AccessibleHelpTopicFileName | Gets the Help topic for the shape. (Inherited from ShapeElement.) | |
AccessibleHelpTopicId | Gets the ID of the Help topic for the shape. (Inherited from ShapeElement.) | |
AccessibleName | Gets the name of the shape. (Inherited from ShapeElement.) | |
AccessibleRole | Gets the role of the shape. (Inherited from ShapeElement.) | |
AccessibleState | Gets the state of the shape. (Overrides ShapeElement.AccessibleState.) | |
AccessibleValue | Gets the value of the shape. (Inherited from ShapeElement.) | |
AllowsChildrenInSelection | If true, the children of this shape can be included in the current selection group. (Inherited from ShapeElement.) | |
AllowsChildrenToResizeParent | true if this shape can be resized when the size or position of a child shape is changed. (Inherited from ShapeElement.) | |
AllowsChildrenToShrinkParent | If true, this shape will reduce in size to fit around its children when they are re-sized or moved. (Inherited from ShapeElement.) | |
Anchoring | Describes how the shape should position and size itself as the parent shape moves and resizes. Alter the returned object as required. | |
AutoResizeParentOnBoundsChange | Gets the child shape and verifies whether its parent shape should be resized when the absolute bounds for the child shape change. | |
BackgroundBrushId | Gets the ID for the brush that is used to paint the background of the shape. (Inherited from ShapeElement.) | |
BackgroundGradientMode | Gets the gradient for the background of the shape. | |
BoundingBox | Gets the bounding rectangle of the shape, measured relative to the ParentShape. (Overrides ShapeElement.BoundingBox.) | |
Bounds | A domain property that gets or sets the size and position of the bounding rectangle of the shape, measured relative to the top left of the ParentShape. | |
BoundsRules | Bounds rules constrain how the user can update the size and position of the bounding rectangle. Override to return a BoundsRules. | |
CanExpandAndCollapse | Gets the shape and verifies whether a user can expand and collapse it. | |
CanFocus | Gets the shape and verifies whether it can receive the focus. (Inherited from ShapeElement.) | |
CanMove | Gets the shape and verifies whether a user can move it. (Inherited from ShapeElement.) | |
CanResize | Gets the shape and verifies whether a user can resize it. | |
CanSelect | Gets the shape and verifies whether a user can select it. (Inherited from ShapeElement.) | |
Center | Gets the point in the center of the shape. (Inherited from ShapeElement.) | |
ClassStyleSet | Gets the style set for the shape. (Inherited from ShapeElement.) | |
ClipWhenDrawingFields | Gets the child shape and verifies whether its clipping region should be set to the bounding box for the parent shape when the child shape is drawn. (Inherited from ShapeElement.) | |
ConnectionPoints | A list of points on the perimeter of a shape at which connectors can terminate. By default, a shape has no connection points, and connectors can terminate anywhere on its perimeter. | |
Decorators | Gets the collection of decorators for the shape. (Inherited from ShapeElement.) | |
DefaultContainerMargin | Gets the margin between the parent shape and its nested child shapes. | |
DefaultShapeField | Gets the default shape, which is the first shape that can receive focus. (Inherited from ShapeElement.) | |
DefaultSize | Gets the default size of the shape. (Inherited from ShapeElement.) | |
Diagram | Gets the diagram to which the shape belongs. (Inherited from ShapeElement.) | |
EnsureVisiblePreference | Preferences for the EnsureVisible method for this Shape. Default value is to return the VisiblePreference for the Diagram hosting this Shape. (Inherited from ShapeElement.) | |
Events | Gets the list of event handlers for the shape. (Inherited from ShapeElement.) | |
FixedFlags | Gets the flags that determine whether a shape is fixed to its position on the diagram. | |
FromRoleLinkShapes | Gets the collection of link shapes for which this shape is the source. | |
GeometryBackgroundBrushId | Gets the ID of the brush that is used to paint the background of the geometry. (Inherited from ShapeElement.) | |
GeometryBoundingBox | Gets the bounding box of the shape. (Inherited from ShapeElement.) | |
GeometryCanResizeBottom | Gets the shape and verifies whether the user can resize it vertically, starting at the bottom. | |
GeometryCanResizeLeft | Gets the shape and verifies whether the user can resize it horizontally, starting on the left. | |
GeometryCanResizeRight | Gets the shape and verifies whether the user can resize it horizontally, starting on the right. | |
GeometryCanResizeTop | Gets the shape and verifies whether the user can resize it vertically, starting at the top. | |
GeometryHasFilledBackground | Gets the shape and verifies whether its background is painted. (Inherited from ShapeElement.) | |
GeometryHasOutline | Gets the shape and verifies whether it has an outline. (Inherited from ShapeElement.) | |
GeometryHasShadow | true if the shape has a shadow; otherwise, false. (Inherited from ShapeElement.) | |
GeometryOutlinePenId | Gets the ID of the pen that draws the outline for the shape. (Inherited from ShapeElement.) | |
GeometryStyleSet | Gets the style set for the shape. (Inherited from ShapeElement.) | |
GridSize | If non-zero, this shape and its children will snap to a grid of this size. Defaults to ParentShape.GridSize. (Inherited from ShapeElement.) | |
HasAnchoring | True if there are any settings in the Anchoring. | |
HasBackgroundGradient | Gets the shape and verifies whether it has a gradient for its background. | |
HasChildren | true if the shape has child shapes. (Inherited from ShapeElement.) | |
HasConnectionPoints | True if the ConnectionPoints list is not empty. | |
HasCustomToolTip | Gets the shape and verifies whether it has a custom tooltip. (Inherited from ShapeElement.) | |
HasDragOverToolTip | Gets the shape and verifies whether it has a tooltip. (Inherited from ShapeElement.) | |
HasFilledBackground | Gets the shape and verifies whether it has a background. (Inherited from ShapeElement.) | |
HasHighlighting | Gets the shape and verifies whether it is highlighted. (Inherited from ShapeElement.) | |
HasOutline | Gets the shape and verifies whether it has an outline. (Inherited from ShapeElement.) | |
HasShadow | Gets the shape and verifies whether it has a shadow. (Inherited from ShapeElement.) | |
HasToolTip | Gets the shape and verifies whether it has a tooltip. (Inherited from ShapeElement.) | |
Id | Gets the ID of the element. (Inherited from ModelElement.) | |
IsActive | Gets the IsActive flag and verifies to see whether the element is active. (Inherited from ModelElement.) | |
IsDeleted | Gets the IsDeleted flag and checks to see whether the element has been deleted from the model. (Inherited from ModelElement.) | |
IsDeleting | Gets the IsDeleting flag and verifies whether the element is currently being deleted from the model. (Inherited from ModelElement.) | |
IsExpanded | Gets the shape and verifies or sets whether it is expanded. | |
IsNestedChild | true if this shape element is in the NestedChildShapes of its ParentShape. (Inherited from ShapeElement.) | |
IsPlaceRouteNode | True if the shape’s position can be adjusted | |
IsPort | true if the shape is a port shape; otherwise, false. | |
IsRelativeChild | true if this shape element is in the RelativeChildShapes of its ParentShape. (Inherited from ShapeElement.) | |
IsVisible | If true, the shape appears on the diagram; if false, it does not appear, and layout and routing algorithms ignore it. See also Hide() and Show(). (Inherited from ShapeElement.) | |
LayoutObjectFixedFlags | Gets or sets the flags that determine whether a shape inside the graph is fixed to its position on the diagram. | |
LineAdjustAwayDefault | Gets the shape and verifies whether child link shapes should try to align when they are connected to same shape or sets this value. (Inherited from ShapeElement.) | |
LineAffinityDefault | Gets or sets the target location where the link shape should try to position the shape. (Inherited from ShapeElement.) | |
LineToLineClearance | Gets or sets the distance between child link shapes for this shape. (Inherited from ShapeElement.) | |
LineToNodeClearance | Gets or sets the distance between child link shapes and child node shapes. (Inherited from ShapeElement.) | |
Link | Gets a list of link shapes. | |
Location | Gets or sets the coordinates of the top-left corner of the shape's bounds relative to its ParentShape. | |
MaximumSize | Gets the maximum size for the shape. (Inherited from ShapeElement.) | |
MinimumResizableSize | Gets the minimum size to which the shape can be resized. | |
MinimumSize | Gets the minimum size for the shape. (Overrides ShapeElement.MinimumSize.) | |
ModelElement | Gets or sets the model element that is associated with the presentation element. (Inherited from PresentationElement.) | |
NestedChildShapes | The list of shapes that are part of this shape, and are constrained to appear within the boundaries of this shape or diagram. (Inherited from ShapeElement.) | |
NestedShapesMargin | Gets the margin between the shape's bounding box and its nested node shapes. (Inherited from ShapeElement.) | |
NodeToNodeClearance | Gets or sets the margin between child node shapes. (Inherited from ShapeElement.) | |
OutlinePenId | Gets the ID of the pen that is used to draw the outline of the shape. (Inherited from ShapeElement.) | |
OutlinePenWidth | Gets the width of the outline for the shape. (Inherited from ShapeElement.) | |
PaintMoveableDecoratorSelectionLines | (Inherited from ShapeElement.) | |
ParentLink | Gets the relationship instance from the shape to the parent shape. (Inherited from ShapeElement.) | |
ParentShape | Gets the parent shape element. To appear on a diagram, a shape or connector must have a parent. (Inherited from ShapeElement.) | |
Partition | Gets or sets the Partition that contains the element. (Inherited from ModelElement.) | |
Perimeter | Gets the perimeter (path) around the shape. (Inherited from ShapeElement.) | |
PortFixedFlags | Gets the flags that determine whether a port shape is fixed to its position. | |
PortPlacementHelper | Gets the helper class that contains the port placement that a shape's parent shape requires. | |
RelatedShapeToEmphasize | Gets the related shape to visually emphasize to the user when this shape is selected. (Inherited from ShapeElement.) | |
RelativeChildShapes | The list of shapes that are part of this shape, but can appear outside the boundaries of this shape. (Inherited from ShapeElement.) | |
ResizableSides | Gets the sides of the shape that the user can resize. | |
ShapeFields | Parts of a shape such as text rows and decorators. (Inherited from ShapeElement.) | |
ShapeGeometry | Gets the geometry for the shape, such as Rectangle, RoundedRectangle, or Ellipse, which defines operations associated with the outline of the shape. (Inherited from ShapeElement.) | |
ShouldAutoPlaceChildShapes | Gets a shape and verifies whether its nested child shapes should be automatically positioned on the diagram. | |
ShouldTryParentShapeForMergeOnToolboxDoubleClick | If true, when the user double-clicks a toolbox item with this shape selected, if the tool cannot be merged with this shape, then a merge with the parent shape will be attempted. Defaults to true. (Inherited from ShapeElement.) | |
Size | Gets or sets the size of the shape. | |
Store | Gets the Store that contains the element. (Inherited from ModelElement.) | |
StyleSet | Gets an instance of the style set for the shape. (Inherited from ShapeElement.) | |
Subject | Gets or sets the subject for the presentation element. Defaults to the same object as ModelElement. (Inherited from PresentationElement.) | |
TargetToolboxItemFilterAttributes | Gets a collection of attributes that determine which items are enabled or disabled in the Toolbox. (Inherited from ShapeElement.) | |
ToRoleLinkShapes | Gets the collection of link shapes for which this shape is the target. | |
ZOrder | Determines the order in which this shape will be displayed relative to other shapes on the diagram. Normally set from the order of child shapes. (Inherited from ShapeElement.) |
Top
Methods
Name | Description | |
---|---|---|
AccessibleDoDefaultAction | Performs the default action for the accessible object. (Inherited from ShapeElement.) | |
Associate | Assigns a model element to the presentation element. The same effect as setting ModelElement. (Inherited from PresentationElement.) | |
AutoLayoutChildShapes | Positions the collection of shapes in the diagram automatically. | |
CalculateDerivedVisible | Verifies whether the child shape appears. (Inherited from ShapeElement.) | |
CalculateMinimumSizeBasedOnChildren | Calculates the minimum size needed so that the shape can include its child shapes. | |
CanMerge | Verifies whether a source element can be added to this element. (Inherited from ModelElement.) | |
ChooseMergeTarget(ElementGroup) | Selects a target element to accept as its child an element that the user wants to copy, drag, or create. (Inherited from ModelElement.) | |
ChooseMergeTarget(ElementGroupPrototype) | Selects a target element to accept as its child an element that the user wants to copy, drag, or create. (Inherited from ModelElement.) | |
ChooseParentShape | Selects a parent shape for a new child shape, typically this shape. (Inherited from ShapeElement.) | |
ChooseRelationship | Called by FixUpChildShapes() to get the relationship to create between the child shape and its parent shape. (Overrides ShapeElement.ChooseRelationship(ShapeElement).) | |
CoerceSelection | Allows a shape to determine which other shapes are selected. (Inherited from ShapeElement.) | |
Collapse | Collapses the shape so that its nested child shapes are not visible. | |
ConfiguredChildPortShape | Configures a child port shape and positions it, if necessary. | |
Copy() | Creates a copy of the element in the model. (Inherited from ModelElement.) | |
Copy(IEnumerable<Guid>) | Creates a copy of the element and its child links and elements. (Inherited from ModelElement.) | |
CreateBackgroundGradientField | Creates the area field, which displays the gradient fill in the background of the shape. | |
CreateChildShape | Creates a shape and adds it as a child to this shape. (Inherited from ShapeElement.) | |
CreateClassStyleSet | Creates a class style set for the shape type. (Inherited from ShapeElement.) | |
CreateConnectionPoint | A connection point is a point on the edge of a shape at which connectors are terminated in preference to other points on the edge. | |
CreateDecorators | Creates a collection of decorators for the shape type. (Inherited from ShapeElement.) | |
CreateDefaultBounds | Creates default bounding rectangle for the shape. | |
CreateInstanceStyleSet | Creates a style set for the shape. (Inherited from ShapeElement.) | |
CreateShapeFields | Creates a collection of shape fields for the shape type. (Inherited from ShapeElement.) | |
Delete() | Deletes an element from the model. (Inherited from ModelElement.) | |
Delete(array<Guid[]) | Deletes an element from the model. (Inherited from ModelElement.) | |
DetermineHighlightShape | Finds the highlighted shape in a chain of shapes. (Inherited from ShapeElement.) | |
DoFoldToShape | Calculates the point where a connector will touch the perimeter of a shape. Override this if you define a non-rectangular shape. (Inherited from ShapeElement.) | |
DoHitTest(PointD, DiagramHitTestInfo) | Returns true if the specified point is within the shape. (Inherited from ShapeElement.) | |
DoHitTest(PointD, DiagramHitTestInfo, Boolean) | Returns true if the specified point is within the shape. (Inherited from ShapeElement.) | |
DoHitTestSelection | Returns true if a given point is in the selection handles around the shape. (Inherited from ShapeElement.) | |
DoKeyboardNavigation | Navigates the from shape to shape, using the keyboard. (Inherited from ShapeElement.) | |
DrawResizeFeedback | Draws the resizing feedback for the shape. (Inherited from ShapeElement.) | |
EnsureConnectionPoints | Override to set points on the edge of the shape at which connectors should terminate. | |
EnsureGraphExists | Verifies whether the grid exists for the shape. | |
EnsureGraphLayoutObjectsExist | Verifies whether the shape and its child shapes are in the graph wrapper. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ExcludeFromClipRegion | Excludes the shape and its child shapes from the clipping region. (Inherited from ShapeElement.) | |
ExcludeGeometryFromClipRegion | Excludes the geometry of a shape and its child shapes from the clipping region. (Inherited from ShapeElement.) | |
ExcludeShapeFromSizeCalculation | If true the shape will not be taken into account to calculate the size of the parent shape | |
Expand | Expands the shape so that its nested child shapes are visible and fit inside it. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FindDecorator(String) | Finds the shape decorator that has a given name. (Inherited from ShapeElement.) | |
FindFirstChild | Searches for the first child in the navigation sequence for the shape. (Inherited from ShapeElement.) | |
FindFreeArea(RectangleD) | Finds an empty area on the grid for the shape. | |
FindFreeArea(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double) | Finds an empty area on the grid for the shape. (Inherited from ShapeElement.) | |
FindLastChild | Searches for the last child in the navigation sequence for the shape. (Inherited from ShapeElement.) | |
FindNextChild | Searches for the next child in the navigation sequence for the shape. (Inherited from ShapeElement.) | |
FindNextInChildFields | Searches for the next shape field in the navigation sequence. (Inherited from ShapeElement.) | |
FindPreviousChild | Searches for the previous child in the navigation sequence for the shape. (Inherited from ShapeElement.) | |
FindPreviousInChildFields | Searches for the previous shape field in the navigation sequence. (Inherited from ShapeElement.) | |
FindShapeField(String) | Searches for a shape field in a shape. (Inherited from ShapeElement.) | |
FixUpChildShapes | Creates or adjusts the child shapes that should be created when a model element is created or updated. Called by Diagram.FixUpDiagram(). (Inherited from ShapeElement.) | |
Focused | Verifies whether the shape has the focus. (Inherited from ShapeElement.) | |
GetAbsoluteBoundsValue | Gets the absolute bounds for the shape. | |
GetAccessibilityObject | Gets the accessible object that is assigned to the shape. (Inherited from ShapeElement.) | |
GetChildElements | Gets a collection of child shapes that belong to the parent shape. (Inherited from ShapeElement.) | |
GetCompliantAnchorPoint | Calculates compliant AnchorPoint based of the proposedAnchorPoint parameter. This method completely ignores the co-ordinates of the anchorPoint parameter. Calculations are done based on the co-ordinates of the proposedAnchorPoint and the anchorPoint at opposite end of the link corresponding to the anchorPoint parameter. | |
GetCursor | Gets the pointer that appears when the mouse is over the shape. (Inherited from ShapeElement.) | |
GetDomainClass | Gets the most-derived domain class for this element. (Inherited from ModelElement.) | |
GetDragOverToolTipText | Gets the tooltip text that appears when the mouse is over the shape. (Inherited from ShapeElement.) | |
GetFieldAccessibleDescription | Gets the description for a field in the shape. (Inherited from ShapeElement.) | |
GetFieldAccessibleName | Gets the name of a field in the shape. (Inherited from ShapeElement.) | |
GetFieldAccessibleValue | Gets the value for a field in the shape. (Inherited from ShapeElement.) | |
GetFieldRepresentedElement | Gets the primary element that the child shape represents. (Inherited from ShapeElement.) | |
GetFieldRepresentedProperty | Gets the property information for a field in the shape. (Inherited from ShapeElement.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetIsExpandedValue | Gets the value for the IsExpanded property. | |
GetPotentialMouseAction | Gets the mouse action to perform for a mouse down event over a specific point in the diagram. (Inherited from ShapeElement.) | |
GetRoleCollection<TCollection, TElement>(Guid) | Gets or creates the linked element collection (Inherited from ModelElement.) | |
GetShapeLuminosity | Calculates the luminosity of the shape. (Inherited from ShapeElement.) | |
GetSubFieldAccessibleDescription | Gets the description for a child field in the shape. (Inherited from ShapeElement.) | |
GetSubFieldAccessibleName | Gets the name of a child field in the shape. (Inherited from ShapeElement.) | |
GetSubFieldAccessibleValue | Gets the value for a child field in the shape. (Inherited from ShapeElement.) | |
GetSubFieldRepresentedElements | Gets a collection of elements that the shape for the child field represents. (Inherited from ShapeElement.) | |
GetSubFieldRepresentedProperty | Gets the property for the child field. (Inherited from ShapeElement.) | |
GetSubFieldRepresentedPropertyElements | Gets the element that contains the property for the child field. (Inherited from ShapeElement.) | |
GetToolTipText | Gets the tooltip text for the shape to which the mouse is pointing. (Inherited from ShapeElement.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasCachedDragOverResult | Verifies whether the results are cached for the drag-over mouse event. (Inherited from ShapeElement.) | |
Hide | Hides the shape and all its children. (Inherited from ShapeElement.) | |
HideCustomToolTip | Hides the custom tooltip for the shape. (Inherited from ShapeElement.) | |
InitializeDecorators | Initializes and adds fields to the shape type. (Inherited from ShapeElement.) | |
InitializeInstanceResources | Initializes the resources for an instance of the shape. (Inherited from ShapeElement.) | |
InitializeResources | Initializes the resources for the shape. (Inherited from ShapeElement.) | |
InitializeShapeFields | Provides support for background gradients. (Overrides ShapeElement.InitializeShapeFields(IList<ShapeField>).) | |
Invalidate() | Makes sure that the shape and its immediate surroundings will be repainted at the end of the transaction. (Inherited from ShapeElement.) | |
Invalidate(Boolean) | Makes sure that the shape will be repainted at the end of the transaction. Call this if you have changed properties of the shape. (Inherited from ShapeElement.) | |
Invalidate(RectangleD) | Makes sure that the shape and its old location will be repainted at the end of the transaction. (Inherited from ShapeElement.) | |
IsDescendantOf | Verifies whether the shape is a descendent of another shape. (Inherited from ShapeElement.) | |
IsNavigationKey(Char) | Verifies whether the key is used as a navigational command. (Inherited from ShapeElement.) | |
IsNavigationKey(Keys) | Verifies whether the key data is used as a navigational command. (Inherited from ShapeElement.) | |
IterateShapes | Iterates through a shape and its child shapes. (Inherited from ShapeElement.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MergeConfigure | Not used for presentation elements. (Inherited from PresentationElement.) | |
MergeDisconnect | Disconnects a source element from a target element. (Inherited from ModelElement.) | |
MergeRelate | Creates a relationship between a model element and a group of model elements. (Inherited from PresentationElement.) | |
ModifyLuminosity | Calculates the luminosity of the highlight for the shape. (Inherited from ShapeElement.) | |
MoveByRepositioning(DiagramDragEventArgs) | Repositions the shapes in the group by the amount that the position of the mouse determines. (Inherited from ShapeElement.) | |
MoveByRepositioning(ElementGroupPrototype, DiagramItemCollection, PointD, DiagramItem) | Repositions the shapes in the group by the amount that the position of the mouse determines. (Inherited from ShapeElement.) | |
NavigateAcrossLinks | Selects the shapes or sets the focus on the shapes that are connected to this shape. | |
NavigateAscend | Navigates to the next ancestor in the navigation sequence and updates the focus. Called in response to user navigation keystrokes. (Inherited from ShapeElement.) | |
NavigateDescend | Navigates to the next descendent in the navigation sequence and updates the focus. Called in response to user navigation keystrokes. (Inherited from ShapeElement.) | |
NavigateTo | Navigates to a specific shape in the navigation sequence and updates the focus. (Inherited from ShapeElement.) | |
NavigateToFirst | Navigates to the first shape in the navigation sequence in the parent of the current selection. Called in response to user navigation keystrokes. (Inherited from ShapeElement.) | |
NavigateToLast | Navigates to the last shape in the navigation sequence in the parent of the current selection. Called in response to user navigation keystrokes. (Inherited from ShapeElement.) | |
NavigateToNext | Navigates to the next shape in the navigation sequence. Called in response to user navigation keystrokes. (Inherited from ShapeElement.) | |
NavigateToPrevious | Navigates to the previously selected shape in the navigation sequence. Called in response to user navigation keystrokes. (Inherited from ShapeElement.) | |
OnAbsoluteBoundsChanged | Called when the size or location of the shape have changed. | |
OnAssociatedPropertyChanged | Updates the shape when the value of an in-memory store property changes for a field in the shape. (Inherited from ShapeElement.) | |
OnBeforePaint | Updates resources, such as pens and brushes, before they are used to paint the shape. (Inherited from ShapeElement.) | |
OnBeginEdit | Called when the user starts to edit a text field. (Inherited from ShapeElement.) | |
OnBoundsFixup | Override this method to customize how the bounds for the shape are determined. (Overrides ShapeElement.OnBoundsFixup(BoundsFixupState, Int32, Boolean).) | |
OnChildConfigured | Configures a port on the shape after the shape is added to the diagram. (Overrides ShapeElement.OnChildConfigured(ShapeElement, Boolean, Boolean).) | |
OnChildConfiguring | Configures the port on the shape when the shape is being added to the diagram. (Overrides ShapeElement.OnChildConfiguring(ShapeElement, Boolean).) | |
OnClick | Called when the user clicks the shape. (Inherited from ShapeElement.) | |
OnCopy | Called when this element has been created as a copy of another element. (Inherited from ModelElement.) | |
OnDeleted | Called when this element has been deleted from the model. (Inherited from ModelElement.) | |
OnDeleting | Called when this element is about to be deleted. (Inherited from ModelElement.) | |
OnDoubleClick | Called when the user double-clicks the shape. (Inherited from ShapeElement.) | |
OnDragDrop | Called when the user drags an item onto the shape. (Inherited from ShapeElement.) | |
OnDragEnter | Called when the mouse enters a shape during a drag operation. (Inherited from ShapeElement.) | |
OnDragLeave | Called when the mouse moves out of a shape. (Inherited from ShapeElement.) | |
OnDragOver | Override this method to respond to the movement of the mouse over the shape. Set e.Effect to indicate the cursor feedback to the user. (Inherited from ShapeElement.) | |
OnEndEdit | Called when the user ends editing a text field. (Inherited from ShapeElement.) | |
OnInitialize | Called to initialize the shape. Override this to attach event handlers and rules to this object. (Inherited from ShapeElement.) | |
OnKeyDown | Alerts listeners that a key is being held down. (Overrides ShapeElement.OnKeyDown(DiagramKeyEventArgs).) | |
OnKeyPress | Alerts listeners that a key has been pressed. (Overrides ShapeElement.OnKeyPress(DiagramKeyPressEventArgs).) | |
OnKeyUp | Called when a key is released. (Inherited from ShapeElement.) | |
OnMouseDown | Called when the user presses a mouse key. (Inherited from ShapeElement.) | |
OnMouseEnter | Called when the mouse enters a shape. (Inherited from ShapeElement.) | |
OnMouseHover | Called when the mouse hovers over a shape. (Inherited from ShapeElement.) | |
OnMouseLeave | Called when the mouse leaves a shape. (Inherited from ShapeElement.) | |
OnMouseMove | Called repeatedly when the user moves the mouse. (Inherited from ShapeElement.) | |
OnMouseUp | Called when a mouse button is released. (Inherited from ShapeElement.) | |
OnMouseWheel | Called when the user has rotated the mouse wheel. (Inherited from ShapeElement.) | |
OnOrphaned | Called when a (Inherited from ShapeElement.) | |
OnPaintEmphasis | Called when emphasis has been applied to the selected shape. (Inherited from ShapeElement.) | |
OnPaintFeedback | Called when drag-and-drop feedback is painted. (Inherited from ShapeElement.) | |
OnPaintSelection | Called to paint the selection highlight. (Inherited from ShapeElement.) | |
OnPaintShape | Called to paint the basic parts of the shape. (Inherited from ShapeElement.) | |
OnParentNodeShapeChanged | This method is invoked if a) ParentShape is NodeShape b) ParentShape either moved or resized. | |
OnResurrected | Called when this element has been added back to a model. (Inherited from ModelElement.) | |
OnRolePlayerPositionChanged | Called when the position of a role has changed. (Inherited from ModelElement.) | |
OnRolePlayerPositionChanging | Called when a role player position is about to change. (Inherited from ModelElement.) | |
OnShapeInserted | Called when a shape has been inserted as a child of another. (Inherited from ShapeElement.) | |
OnShapeRemoved | Called when the shape has been removed as a child shape from its parent shape. (Inherited from ShapeElement.) | |
PerformResizeParentRule() | Alerts the Domain-Specific Language Designer that a parent shape must be resized to match its child shapes. (Inherited from ShapeElement.) | |
PerformResizeParentRule(Boolean, ShapeElement) | Alerts the Domain-Specific Language Designer that a parent shape must be resized to match its child shapes. (Inherited from ShapeElement.) | |
PerformShapeAnchoringRule | Anchors the shape to the diagram. | |
PermitChildVisibility | Verifies whether the child shape can appear. (Overrides ShapeElement.PermitChildVisibility(ShapeElement).) | |
ProcessVisibilityChange | Processes a shape's change in visibility. (Overrides ShapeElement.ProcessVisibilityChange(Boolean).) | |
PurgeLayoutObjects | Removes the objects that are used to position the shape on the diagram grid. (Inherited from ShapeElement.) | |
PurgePoints | Removes points for the shape on the diagram grid. (Inherited from ShapeElement.) | |
RebuildShape | Rebuilds the shape. (Inherited from ShapeElement.) | |
RemoveLayoutObject | Removes the shape, including any relative and nested child shapes, from the diagram grid. (Inherited from ShapeElement.) | |
Selected | Verifies whether the shape is selected in a specified view. (Inherited from ShapeElement.) | |
SetAbsoluteBoundsValue | Sets the value for the AbsoluteBounds property. | |
SetInitialGraphLayoutVisibility | Sets the visibility of the graph. (Inherited from ShapeElement.) | |
SetIsExpandedValue | Sets the value for the IsExpanded property. | |
SetShowHideState | Sets the visibility of the shape and all its children. (Inherited from ShapeElement.) | |
SetShowHideStateImplementation | Sets the visibility of the shape. (Inherited from ShapeElement.) | |
ShouldAddShapeForElement | Determines whether a shape should be created to represent a given domain class instance on the diagram. (Inherited from ShapeElement.) | |
ShouldReparentOnMove | Verifies whether a child shape should be added to a new parent when the child shape is moved. (Inherited from ShapeElement.) | |
Show | Makes a shape and all its children visible. (Inherited from ShapeElement.) | |
ShowCustomToolTip | Makes a shape's custom tooltip visible. (Inherited from ShapeElement.) | |
Side | Assigns a side of the shape to the port. | |
ToString | Gets the name of the shape and its type. (Inherited from ShapeElement.) | |
TranslateGeometryToAbsoluteBounds | Converts the relative bounds to absolute bounds for the shape's geometry. (Inherited from ShapeElement.) | |
TranslateGeometryToRelativeBounds | Converts the absolute bounds to relative bounds for the shape's geometry. (Inherited from ShapeElement.) | |
TranslateToAbsoluteBounds | Converts the relative bounds to absolute bounds for the shape. (Inherited from ShapeElement.) | |
TranslateToRelativeBounds | Converts the absolute bounds to relative bounds for the shape. (Inherited from ShapeElement.) | |
UpdateChildVisibility | Updates the visibility status for the child shape. | |
UpdateDerivedVisible | Updates the visible state of the derived shape. (Inherited from ShapeElement.) | |
UpdateGeometryLuminosity(DiagramClientView, Brush) | Updates the luminosity for the brush. (Inherited from ShapeElement.) | |
UpdateGeometryLuminosity(DiagramClientView, Pen) | Updates the luminosity for the pen. (Inherited from ShapeElement.) |
Top
Events
Name | Description | |
---|---|---|
AbsoluteBoundsChanged | Occurs when the absolute bounds for the shape change. | |
Click | Occurs when the user clicks the mouse over a shape. (Inherited from ShapeElement.) | |
DoubleClick | Occurs when the user double-clicks the mouse. (Inherited from ShapeElement.) | |
KeyDown | Occurs when the user presses a key. (Inherited from ShapeElement.) | |
KeyPress | Occurs when the user presses and releases a key. (Inherited from ShapeElement.) | |
KeyUp | Occurs when the user releases a key. (Inherited from ShapeElement.) | |
MouseDown | Occurs when the user presses the mouse button. (Inherited from ShapeElement.) | |
MouseMove | Occurs when the user moves the mouse. (Inherited from ShapeElement.) | |
MouseUp | Occurs when the user releases the mouse button. (Inherited from ShapeElement.) | |
MouseWheel | Occurs when the user rotates the mouse wheel. (Inherited from ShapeElement.) |
Top
Extension Methods
Name | Description | |
---|---|---|
AddExtension(Guid) | Overloaded. Extend this ModelElement with newly instantiated extension of the identified domain type. An InvalidOperationException will be thrown if the element already has an extension of that type. (Defined by ModelElementExtensionMethods.) | |
AddExtension(Type) | Overloaded. Extend this ModelElement with a newly instantiated extension of the specified type. An InvalidOperationException will be thrown if the element already has an extension of that type. (Defined by ModelElementExtensionMethods.) | |
AddExtension(DomainClassInfo) | Overloaded. Extend this ModelElement with a newly instantiated extension of the specified domain type. An InvalidOperationException will be thrown if the element already has an extension of that type. (Defined by ModelElementExtensionMethods.) | |
AddExtension(ExtensionElement) | Overloaded. Extend this ModelElement with a specific extension. An InvalidOperationException will be thrown if the element already has an extension of the same type. (Defined by ModelElementExtensionMethods.) | |
AddExtension<T>() | Overloaded. Extend this ModelElement with a newly instantiated extension of a particular type. An InvalidOperationException will be thrown if the element already has an extension of the same type. (Defined by ModelElementExtensionMethods.) | |
CanDelete | Deletes the element from the model. (Defined by ImmutabilityExtensionMethods.) | |
GetAllExtensions | Return an enumerable that performs a breadth first traversal across the tree of extension elements embedded in this ModelElement. (Defined by ModelElementExtensionMethods.) | |
GetBaseElement | Returns the root of the virtual MEL in which the specified ModelElement is participating. (Defined by ModelElementExtensionMethods.) | |
GetDslDefinitionModelElement | This method guarantees that the real model element corresponding to the PresentationElement is returned. For DslDesigner PELs, the corresponding subject may actually be an internal TreeNode class and not the actual MEL. This method handles those cases correctly so that the actual MEL is returned. (Defined by PresentationElementHelper.) | |
GetExtension(Guid) | Overloaded. (Defined by ModelElementExtensionMethods.) | |
GetExtension(Type) | Overloaded. Get the ExtensionElement of the specified type from the available extensions of this ModelElement. If the element has no such extension then an InvalidOperationException will be raised. (Defined by ModelElementExtensionMethods.) | |
GetExtension(DomainClassInfo) | Overloaded. (Defined by ModelElementExtensionMethods.) | |
GetExtension<T>() | Overloaded. Get the ExtensionElement of the specified type from the available extensions of this ModelElement. If the element has no such extension then an InvalidOperationException will be raised. (Defined by ModelElementExtensionMethods.) | |
GetLocks | Get the lock flags for this element. This will include any locks enabled on the Partition containing the element. (Defined by ImmutabilityExtensionMethods.) | |
IsExtendedBy(Guid) | Overloaded. Query whether this ModelElement is currently extended by an ExtensionElement of a particular type. (Defined by ModelElementExtensionMethods.) | |
IsExtendedBy(Type) | Overloaded. Query whether this ModelElement is currently extended by an ExtensionElement of a particular type. (Defined by ModelElementExtensionMethods.) | |
IsExtendedBy(DomainClassInfo) | Overloaded. Query whether this ModelElement is currently extended by an ExtensionElement of a particular type. (Defined by ModelElementExtensionMethods.) | |
IsLocked | Test whether this element has any of a specified set of locks (Defined by ImmutabilityExtensionMethods.) | |
RemoveExtension(Type) | Overloaded. Remove any extension of this ModelElement that is of a particular type. (Defined by ModelElementExtensionMethods.) | |
RemoveExtension(Guid) | Overloaded. Remove any extension of the specified ModelElement that is of a particular type. (Defined by ModelElementExtensionMethods.) | |
RemoveExtension(DomainClassInfo) | Overloaded. Remove any extension of the specified ModelElement that is of a particular type. (Defined by ModelElementExtensionMethods.) | |
RemoveExtension(ExtensionElement) | Overloaded. Remove a specified ExtensionElement from the extensions of this ModelElement. (Defined by ModelElementExtensionMethods.) | |
SetLocks | Set the lock flags of this element (Defined by ImmutabilityExtensionMethods.) | |
TryGetExtension(Guid) | Overloaded. (Defined by ModelElementExtensionMethods.) | |
TryGetExtension(Type) | Overloaded. (Defined by ModelElementExtensionMethods.) | |
TryGetExtension(DomainClassInfo) | Overloaded. (Defined by ModelElementExtensionMethods.) | |
TryGetExtension<T>() | Overloaded. Get the ExtensionElement of the specified type from the available extensions of this ModelElement. If this element has no such extension then the result will be null. (Defined by ModelElementExtensionMethods.) |
Top
Fields
Name | Description | |
---|---|---|
AbsoluteBoundsDomainPropertyId | The GUID used to identify the AbsoluteBounds domain property. | |
BackgroundGradientFieldName | Represents the ID for the shape's area field that contains the background gradient. | |
DomainClassId | The GUID of the domain class of this shape. | |
IsExpandedDomainPropertyId | Represents the ID that is assigned to the IsExpanded property. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IMergeElements.CanMerge | Returns true if this element can merge with the content of the prototype. (Inherited from ModelElement.) | |
IMergeElements.ChooseMergeTarget(ElementGroup) | (Inherited from ModelElement.) | |
IMergeElements.ChooseMergeTarget(ElementGroupPrototype) | (Inherited from ModelElement.) | |
IMergeElements.MergeConfigure | (Inherited from ModelElement.) | |
IMergeElements.MergeDisconnect | (Inherited from ModelElement.) | |
IMergeElements.MergeRelate | (Inherited from ModelElement.) |
Top
Remarks
NodeShape is the base class from which all other non-connector shapes derive. When you define a shape class in DSL Definition, its default base class is NodeShape, unless you explicitly set another shape class as the base.
A NodeShape is usually the graphical representation of an instance of a domain class. The domain class represents conceptual information, and the shape represents its visible appearance on the diagram. In the DSL Definition, you define a Diagram Element Map between the shape class and the domain class. At run time, you can access the domain class instance by using the property ModelElement.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.VisualStudio.Modeling.Diagrams Namespace
Other Resources
[redirect] How to: Navigate and Update a Diagram
How to Define a Domain-Specific Language
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.ModelElement
Microsoft.VisualStudio.Modeling.Diagrams.PresentationElement
Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
Microsoft.VisualStudio.Modeling.Diagrams.NodeShape
Microsoft.VisualStudio.Modeling.Diagrams.Compartment
Microsoft.VisualStudio.Modeling.Diagrams.CompartmentShape
Microsoft.VisualStudio.Modeling.Diagrams.DecoratorHostShapeBase
Microsoft.VisualStudio.Modeling.Diagrams.Diagram
Microsoft.VisualStudio.Modeling.Diagrams.ImageShape
Microsoft.VisualStudio.Modeling.Diagrams.LabelShape
Microsoft.VisualStudio.Modeling.Diagrams.Port
Microsoft.VisualStudio.Modeling.Diagrams.PortShape
Microsoft.VisualStudio.Modeling.Diagrams.SwimlaneShape