次の方法で共有


LinkDecorator Class

Base LinkDecorator class which allows other derived classes to implement actual different geometries for decorators. This class also provides static accessors for the different type of decorators that exist as part of the core design surface.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.LinkDecorator
    Microsoft.VisualStudio.Modeling.Diagrams.DecoratorDoubleEmptyArrow
    Microsoft.VisualStudio.Modeling.Diagrams.DecoratorEmptyArrow
    Microsoft.VisualStudio.Modeling.Diagrams.DecoratorFilledArrow
    Microsoft.VisualStudio.Modeling.Diagrams.DecoratorFilledDiamond

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

Syntax

'宣言
<SerializableAttribute> _
Public MustInherit Class LinkDecorator
[SerializableAttribute]
public abstract class LinkDecorator
[SerializableAttribute]
public ref class LinkDecorator abstract
[<AbstractClass>]
[<SerializableAttribute>]
type LinkDecorator =  class end
public abstract class LinkDecorator

The LinkDecorator type exposes the following members.

Constructors

  Name Description
Protected method LinkDecorator Default constructor does nothing.

Top

Properties

  Name Description
Public property BrushId Gets the BrushId used to draw the decorator background.
Public propertyStatic member DecoratorDoubleEmptyArrow Gets the single instance of the double empty arrow decorator.
Public propertyStatic member DecoratorEmptyArrow Gets the single instance of the empty arrow decorator.
Public propertyStatic member DecoratorEmptyDiamond Gets the single instance of the empty diamond decorator.
Public propertyStatic member DecoratorFilledArrow Gets the single instance of the filled arrow decorator.
Public propertyStatic member DecoratorFilledDiamond Gets the single instance of the filled diamond decorator.
Public propertyStatic member DecoratorHollowArrow Gets the single instance of the hollow arrow decorator.
Public property DecoratorPath get/set the graphics path This is a singleton on the geometry class. Do not dispose. Use immediately.
Protected property FillDecorator
Public property PenId Gets the PenId used to draw the outline.

Top

Methods

  Name Description
Public method DoPaintShape Paints the LinkDecorator on a LinkShape based on the bounds that it's given. The default drawing code gets the Path for the decorator and draws and fills it based on the LinkDecorator's PenId and BrushId.
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.)
Protected method GetPath Returns the GraphicsPath for this LinkDecorator based on the bounding box passed in.
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