Auf Englisch lesen

Freigeben über


PenStyleSetInfo Class

Contains the StyleSet information about a pen. These are all of the settings that be placed on a Pen like Color, Alignment, LineCap, PenType, etc. The information is used to create a unique hash code for this class which is used in the HybridDictionary for lookup of a particular cached resourse.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.PenStyleSetInfo

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

Syntax

public class PenStyleSetInfo : ICloneable

The PenStyleSetInfo type exposes the following members.

Constructors

  Name Description
Public method PenStyleSetInfo

Top

Properties

  Name Description
Public property Alignment Gets or sets the PenAlignment information.
Public property Brush Gets or sets the Brush information for this pen.
Public property Color Gets or sets the Color information for this pen.
Public property CompoundArray Gets or sets an array values that specify a compound pen. A compound pen draws a compound line made up of parallel lines and spaces.
Public property CustomEndCap Gets or sets a custom cap to use at the end of lines drawn with this Pen object.
Public property CustomStartCap Gets or sets a custom cap to use at the beginning of lines drawn with this Pen object.
Public property DashCap Gets or sets the cap style used at the end of the dashes that make up dashed lines drawn with this Pen object.
Public property DashOffset Gets or sets the distance from the start of a line to the beginning of a dash pattern.
Public property DashPattern Gets or sets an array of custom dashes and spaces.
Public property DashStyle Gets or sets the style used for dashed lines drawn with this Pen object.
Public property EndCap Gets or sets the cap style used at the end of lines drawn with this Pen object.
Public property LineJoin Gets or sets the join style for the ends of two consecutive lines drawn with this Pen object.
Public property MiterLimit Gets or sets the limit of the thickness of the join on a mitered corner.
Public property StartCap Gets or sets the cap style used at the beginning of lines drawn with this Pen object.
Public property Transform Gets or sets the geometric transformation for this Pen object.
Public property Width Gets or sets the width of this Pen object.

Top

Methods

  Name Description
Public method Clone Method to create a new instance of this object with the same instance data.
Public method Equals(Object) Determines whether the specified object is equal to this one. Only equal if all of their properties are equal. (Overrides Object.Equals(Object).)
Public methodStatic member Equals(Object, Object) Determines whether the two specified objects are equal to each other
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 PenStyleSetInfo, suitable for use in hashing algorithms and data structures like a hash table. (Overrides Object.GetHashCode().)
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