This documentation is archived and is not being maintained.

Microsoft.VisualStudio.Modeling.Diagrams Namespace

The types in the Microsoft.VisualStudio.Modeling.Diagrams namespace display your DSL as a diagram. They provide the implementation of the diagrams, shapes, and connectors that you define in the DSL Definition file. To customize the appearance of the DSL using program code, you work with the types defined in this namespace.

The principal types of interest are:

  • NodeShape – the base class of shapes that you specify in DSL Definition.

  • BinaryLinkShape – the base class of connectors that you specify in DSL Definition. It has a base class LinkShape, which has no other derived classes.

  • Diagram – the base class of the diagram that you specify in DSL Definition.

  • ShapeElement – base class of NodeShape and LinkShape. Diagrams, shapes and connectors are all ShapeElements.

  • PresentationViewsSubject – the relationship between a shape or connector on the diagram and a domain model element.

  • ShapeField – an area within a shape, such as a section in a compartment shape, a row of text, a label, or an icon.

  • Decorator – an item displayed in a ShapeField. A IconDecorator contains an image on the shape, and a TextDecorator displays a label.

  • DiagramItem – a reference to a shape and optionally a field and subfield within the shape. Used to identify the target of a user operation.

  • ShapeGeometry – this class and its derived classes define and draw the outlines of the different major kinds of shapes, such as ellipses, rectangles, compartments, connectors, and icons. Shapes delegate to these classes the determination of whether a mouse point is inside the shape, and painting the basic outlines.

  ClassDescription
Public classAbsoluteBoundsChangedEventArgs
Public classActionCanceledState
Public classActionCompletedState
Public classAnchoringBehaviorDescribes how the ShapeField should position and size itself as the parent NodeShape moves and resizes.
Public classAnchorPoint
Public classAnchorPointAction
Public classAreaFieldA shape field that defines a color gradient to fill the background of a shape.
Public classAssociatedPropertyInfo
Public classAvoidCornerRule
Public classBinaryLinkNodeChangeRule
Public classBinaryLinkShapeRepresents a line or arrow that can connect two shapes on a diagram. A binary link can also form a loop that connects a shape to itself.
Public classBinaryLinkShapeBaseAbstract base class for BinaryLinkShape.
Public classBinaryLinkShapeGeometry
Public classBinaryLinkShapeSerializer
Public classBinaryLinkShapeSerializerBase
Public classBoundsRulesDefines limits on the size and location of a shape.
Public classBrushDescriptor
Public classBrushSettings
Public classBrushStyleSetInfo
Public classChevronButtonField
Public classCircleShapeGeometry
Public classClickedState
Public classCommandIdCollection
Public classCommentShape
Public classCommentShapeAddRule
Public classCommentShapeSerializer
Public classCommentShapeTypeDescriptor
Public classCompartmentA compartment within a compartment shape.
Public classCompartmentDescription
Public classCompartmentMapping
Public classCompartmentRuleHelper
Public classCompartmentSerializer
Public classCompartmentShapeBase class of compartment shapes that you define in DSL Definition.
Public classCompartmentShapeAreaField
Public classCompartmentShapeSerializer
Public classCompartmentTypeDescriptor
Public classConnectAction
Public classConnectionPoint
Public classConnectionType
Public classConnectorDecorator
Public classCoreDesignSurfaceCopyClosure
Public classCoreDesignSurfaceCopyClosureBase
Public classCoreDesignSurfaceDeleteClosure
Public classCoreDesignSurfaceDeleteClosureBase
Public classCoreDesignSurfaceDomainModel
Public classCoreDesignSurfaceSerializationBehavior
Public classCoreDesignSurfaceSerializationBehaviorBase
Public classCoreDesignSurfaceSerializationBehaviorMonikerResolver
Public classCoreDesignSurfaceSerializationBehaviorSerializationMessages
Public classDashStyleTypeConverter
Public classDecoratorWhen overridden in a derived class, represents a decorator element in the diagram.
Public classDecoratorDoubleEmptyArrow
Public classDecoratorEmptyArrow
Public classDecoratorEmptyDiamond
Public classDecoratorFilledArrow
Public classDecoratorFilledDiamond
Public classDecoratorHollowArrow
Public classDecoratorHostShape
Public classDecoratorHostShapeBase
Public classDecoratorHostShapeSerializer
Public classDecoratorHostShapeSerializerBase
Public classDefaultBoundsRules
Public classDefaultGroupBoundsRules
Public classDesignSurfaceAccessibleObject
Public classDesignSurfaceElementOperations
Public classDesignSurfaceMergeContext
Public classDiagramRepresents a diagram in the Domain-Specific Language Designer.
Public classDiagramAssociationEventArgs
Public classDiagramBrushes
Public classDiagramClientView
Public classDiagramDeleteRule
Public classDiagramDragEventArgs
Public classDiagramEventArgs
Public classDiagramFixupConstants
Public classDiagramFonts
Public classDiagramHitTestInfo
Public classDiagramItem
Public classDiagramItemCollection
Public classDiagramItemEnumerator
Public classDiagramItemEventArgs
Public classDiagramKeyEventArgs
Public classDiagramKeyPressEventArgs
Public classDiagramMouseEventArgs
Public classDiagramPaintEventArgs
Public classDiagramPens
Public classDiagramPointEventArgs
Public classDiagramSelectionRules
Public classDiagramSerializer
Public classDiagramSpy
Public classDiagramTypeDescriptor
Public classDiagramView
Public classDiagramViewAccessibleObject
Public classDiagramWatermark
Public classDiagramWinEvents
Public classDragCanceledState
Public classDragCompletedState
Public classDragDropPendingAction
Public classDraggingState
Public classDragPendingState
Public classDragSourceContext
Public classDropTargetContext
Public classDropTargetFeedback
Public classEdgePoint
Public classEdgePointCollection
Public classEdgePointCollectionConverter
Public classEdgePointConverter
Public classElementListCompartment
Public classElementListCompartmentDescription
Public classElementListCompartmentMapping
Public classElementListCompartmentSerializer
Public classEllipseShapeGeometry
Public classEmptySelection
Public classExpandCollapseDecorator
Public classFieldAccessibleObject
Public classFontDescriptor
Public classFontSettings
Public classFontStyleSetInfo
Public classGeneralDiagramSelectionRules
Public classGeneralSelection
Public classGenericCoreConnectAction
Public classGenericCoreConnectionType
Public classGenericLinkShape
Public classGenericLinkShapeSerializer
Public classGeometryHelpers
Public classGhostShape
Public classGhostShapeCollection
Public classGrabHandle
Public classGroupBoundsRules
Public classGroupSnapToGridRule
Public classHighlightedShapesCollection
Public classHoveringState
Public classHslColor
Public classHslColorConverter
Public classImageFieldLightweight object that represents a part of a shape that can display image decorators or backgrounds.
Public classImageHelper
Public classImageShapeBase class for shapes that display an image.
Public classImageShapeGeometry
Public classImageShapeSerializer
Public classInactiveState
Public classInPlaceTextEditor
Public classInvokeEditorAction
Public classItemDrawInfo
Public classKeepGroupWithinDiagramRule
Public classKeepGroupWithinParentRule
Public classKeepInParentRule
Public classLabelShapeRepresents a label shape in the Domain-Specific Language Designer.
Public classLabelShapeSerializer
Public classLabelShapeTextPropertyDescriptor
Public classLabelShapeTypeDescriptor
Public classLabelTextField
Public classLassoAction
Public classLeaveShapeEventArgs
Public classLineLabelAutoPlacementChangeRule
Public classLineLabelShape
Public classLineLabelShapeSerializer
Public classLineSegment
Public classLineSegmentAccessibleObject
Public classLinkConnectsToNode
Public classLinkConnectsToNodeSerializer
Public classLinkDecorator
Public classLinkShapeRepresents a connector line on a diagram. See also BinaryLinkShape.
Public classLinkShapeChangedRule
Public classLinkShapeGeometry
Public classLinkShapeSerializer
Public classListCompartment
Public classListCompartmentDescription
Public classListCompartmentSerializer
Public classListField
Public classListItemSubField
Public classLostFocusEventArgs
Public classManualRouteAction
Public classModelElementSerializer
Public classMouseActionRepresents a mouse action.
Public classMouseActionEventArgs
Public classMouseActionState
Public classNestedShapesParentRoleChangeRule
Public classNoBoundsRules
Public classNodeShapeRepresents a shape on a diagram, such as a rectangle, icon or other shape with an area (not a connector).
Public classNodeShape.ExpandCollapseNodeShapeWhenAddedToDiagramRule
Public classNodeShapeGeometry
Public classNodeShapeSerializer
Public classNodeShapeTypeDescriptor
Public classPaintFeedbackArgs
Public classPanZoomAction
Public classParentRoleChangeRule
Public classParentShapeContainsNestedChildShapes
Public classParentShapeContainsNestedChildShapesAddRule
Public classParentShapeContainsNestedChildShapesDeleteRule
Public classParentShapeContainsNestedChildShapesSerializer
Public classParentShapeHasRelativeChildShapes
Public classParentShapeHasRelativeChildShapesAddRule
Public classParentShapeHasRelativeChildShapesDeleteRule
Public classParentShapeHasRelativeChildShapesSerializer
Public classPenDescriptor
Public classPenSettings
Public classPenStyleSetInfo
Public classPlusMinusButtonField
Public classPointDConverter
Public classPort
Public classPortGroupBoundsRules
Public classPortMovementRule
Public classPortPlacementHelper
Public classPortSerializer
Public classPortShapeBase class for port shapes that you can specify in the DSL Definition.
Public classPortShapeSerializer
Public classPresentationElementAn element that appears in a user interface and represents a visible presentation of a domain model element.
Public classPresentationElementSerializer
Public classPresentationElementTypeDescriptionProvider
Public classPresentationElementTypeDescriptor
Public classPresentationViewsSubjectThe relationship between domain model elements and their presentation in a user interface, typically a diagram.
Public classPresentationViewsSubjectSerializer
Public classPropertyChangedEventArgs
Public classRectangleDConverter
Public classRectangleShapeGeometry
Public classResizeAction
Public classRoundedRectangleShapeGeometry
Public classSelectAction
Public classSelectedShapesCollection
Public classSelectionContext
Public classSelectionState
Public classSelectionStateCollection
Public classShapeAccessibleObject
Public classShapeAutoInvalidator
Public classShapeDecoratorClass to encapsulate the way ShapeFields and child shapes are used to represent Notation Decorators when they are placed on a Shape
Public classShapeElementRepresents a diagram or a shape or connector in a diagram. ShapeElements encapsulate the visual presentation of model elements.
Public classShapeElementAddRule
Public classShapeElementSerializer
Public classShapeEnumerator
Public classShapeFieldLightweight object that represents a part of a shape that can display items such as the background image, text decorators, and icon decorators.
Public classShapeGeometries
Public classShapeGeometryRepresents the geometry for a shape or connector.
Public classShapeIdCollection
Public classShapeModelingCollection
Public classShapeSubFieldA sub component of a ShapeField that is optionally selectable, focusable, hit-testable, in-place-editable, and IAccessible. Examples of a ShapeSubField are list items in a list field, grid cells and grid lines in a grid field, and radio buttons in a radio button group. ShapeSubFields are only created as needed. For example, a grid containing 10,000 cells only needs to create a subfield for a cell when the subfield is selected, focused, hit-tested, edited, or accessed via IAccessible.
Public classSnakingInfo
Public classSnapToGridRule
Public classSnapToPerimeterFollowingRotationRule
Public classStyleSet
Public classStyleSetResourceId
Public classSubfieldAccessibleObject
Public classSwimLaneFixUpContext
Public classSwimlaneHelper
Public classSwimlaneShapeRepresents a swimlane shape in a diagram. Base class for swmlane shapes that you specify in DSL Definition.
Public classSwimlaneShapeGeometry
Public classSwimlaneShapeSerializer
Public classTextFieldLightweight object that represents a part of a shape that can display text labels or areas.
Public classToggleButtonEventArgs
Public classToggleButtonField
Public classToolboxAction
Public classUnplacedShapesContext

Date

History

Reason

Added more detailed remarks.

Customer feedback.

Show: