Condividi tramite


DiagramPens Class

Each property of the DiagramPens class is a StyleSetResourceId object that uniquely identifies a pen resource used by the DiagramClientView paint methods.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.DiagramPens

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Dichiarazione
Public NotInheritable Class DiagramPens
public sealed class DiagramPens
public ref class DiagramPens sealed
[<Sealed>]
type DiagramPens =  class end
public final class DiagramPens

The DiagramPens type exposes the following members.

Properties

  Name Description
Public propertyStatic member ConnectionLine Gets the resource Id for the connection line's pen. Used to draw the connection lines in a diagram.
Public propertyStatic member ConnectionLineDecorator Gets the resource Id for the connection line decorator's pen. Used to draw the outline of decorators.
Public propertyStatic member ConnectionLineGhost Gets the resource Id for the connection line's ghost pen. Used to draw possible connection lines during a connect action.
Public propertyStatic member ConnectionLineHighlight Gets the resource Id for the connection line's highlight pen. Used to draw the connection lines selection border.
Public propertyStatic member ConnectionManualRouteOutline Gets the resource Id for the connection line's manual route outline. Used to draw feedback from the ManualRouteAction.
Public propertyStatic member DiagramOutline Gets the resource Id for the diagram's outline pen. Used to draw the border around the diagram.
Public propertyStatic member EmphasisOutline Gets the resource Id for the emphasis outline pen.
Public propertyStatic member FocusIndicator Gets the resource Id for the focus indicator pen.
Public propertyStatic member FocusIndicatorBackground Gets the resource Id for the focus indicator's background pen.
Public propertyStatic member GhostShapeOutline Gets the resource Id for the shape's ghost outline pen. Used to draw the outline of a shape for feedback as it is being dragged/dropped.
Public propertyStatic member GridLines Gets the resource Id for the diagram's grid lines pen. Used to draw the grid points on the diagram.
Public propertyStatic member Lasso Gets the resource Id for the lasso pen. Used to draw the group selection rectangle (or lasso).
Public propertyStatic member PrimaryGrabHandles Gets the resource Id for the primary grab handles pen. Used to draw the outline of the grab handles at the corner of shapes.
Public propertyStatic member SecondaryGrabHandles Gets the resource Id for the secondary grab handles pen. Used to draw the outline of the grab handles at the corner of shapes.
Public propertyStatic member SelectionBackground Gets the resource Id for the selection background's pen.
Public propertyStatic member SelectionNonPrimaryOutline Gets the resource Id for the selection's secondary outline pen.
Public propertyStatic member SelectionPrimaryOutline Gets the resource Id for the selection's primary outline pen.
Public propertyStatic member ShapeHighlightOutline Gets the resource Id for the shape's highlight outline pen. Used to draw the selection border around a shape.
Public propertyStatic member ShapeOutline Gets the resource Id for the shape's outline pen. Used to draw the border around a shape.
Public propertyStatic member ShapeResizeOutline Gets the resource Id for the shape's resize outline pen. Used to draw the outline of a shape for feedback as its being resized.
Public propertyStatic member ShapeSubtitleOutline Gets the resource Id for the shape subtitle's outline pen. Used to draw the border around a shape's subtitle field.
Public propertyStatic member ShapeTitleOutline Gets the resource Id for the shape title's outline pen. Used to draw the border around a shape's title field.
Public propertyStatic member SwimlaneSeparator Gets the resource Id for the swimlane separator pen.
Public propertyStatic member ZoomLasso Gets the resource Id for the lasso pen. Used to draw the group rectangle or lasso when doing a zoom mouse action.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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