This topic has not yet been rated - Rate this topic

PenSettings Class

PenSettings allows certain properties on a PenStyleSetInfo to be marked as overridden or immutable. If certain Pen settings are marked as immutable, then they are not allowed to be changed again.

Object
  Microsoft.VisualStudio.Modeling.Diagrams.PenSettings

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
public class PenSettings

The PenSettings type exposes the following members.

  NameDescription
Public methodPenSettingsDefault constructor.
Top
  NameDescription
Public propertyAlignmentGets or sets the PenAlignment information. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyBrushGets or sets the Brush information for the PenStyleSetInfo. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyColorGets or sets the Color information for this PenStyleSetInfo. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyCompoundArrayGets or sets an array values that specify a compound pen for the PenStyleSetInfo. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyCustomEndCapGets or sets a custom cap to use at the end of lines drawn with this Pen object. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyCustomStartCapGets or sets a custom cap to use at the beginning of lines drawn with this PenStyleSetInfo object. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyDashCapGets or sets the cap style used at the end of the dashes that make up dashed lines drawn with this PenStyleSetInfo object. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyDashOffsetGets or sets the distance from the start of a line to the beginning of a dash pattern. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyDashPatternGets or sets an array of custom dashes and spaces. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyDashStyleGets or sets the style used for dashed lines drawn with this Pen object. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyEndCapGets or sets the cap style used at the end of lines drawn with this PenStyleSetInfo object. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyImmutableAlignmentMakes the Alignment setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableBrushMakes the Brush setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableColorMakes the Color setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableCompoundArrayMakes the CompoundArray setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableCustomEndCapMakes the CustomEndCap setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableCustomStartCapMakes the CustomStartCap setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableDashCapMakes the DashCap setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableDashOffsetMakes the DashOffset setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableDashPatternMakes the DashPattern setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableDashStyleMakes the DashStyle setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableEndCapMakes the EndCap setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableLineJoinMakes the LineJoin setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableMiterLimitMakes the MiterLimit setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableStartCapMakes the StartCap setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableTransformMakes the Transform setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyImmutableWidthMakes the Width setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public propertyLineJoinGets or sets the join style for the ends of two consecutive lines drawn with this PenStyleSetInfo object. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyMiterLimitGets or sets the limit of the thickness of the join on a mitered corner. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyPenSettingsFlagsGets the overridden properties in the PenStyleSetInfo.
Public propertyPenStyleSetInfoGets or sets the PenStyleSetInfo associated with these settings.
Public propertyStartCapGets or sets the cap style used at the beginning of lines drawn with this PenStyleSetInfo object. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyTransformGets or sets the geometric transformation for this PenStyleSetInfo object. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public propertyWidthGets or sets the width of this PenStyleSetInfo object. Only allows the change if the property is not immutable and sets the override flags appropriately.
Top
  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsOverriddenTests whether certain PenSettings are overridden.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.