StyleSet Methods

 

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

NameDescription
System_CAPS_pubmethodAddBrush(StyleSetResourceId, StyleSetResourceId, BrushSettings)

Add a new Brush to this StyleSet.

System_CAPS_pubmethodAddFont(StyleSetResourceId, StyleSetResourceId, FontSettings)

Add a new Font to this StyleSet.

System_CAPS_pubmethodAddPen(StyleSetResourceId, StyleSetResourceId, PenSettings)

Add a new Pen to this StyleSet.

System_CAPS_pubmethodClearBrushOverride(StyleSetResourceId)

Clears an overriden Brush in the StyleSet.

System_CAPS_pubmethodClearFontOverride(StyleSetResourceId)

Clears an overriden Font in the StyleSet.

System_CAPS_pubmethodClearPenOverride(StyleSetResourceId)

Clears an overriden Pen in the StyleSet.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetBrush(StyleSetResourceId)

Retrieves a specific Brush from the StyleSet. If it's not in the current one, it looks up the parent chain to see if it can find it there. This is a singleton. Do not dispose - this will crash! Use immediately. Use GetBrushCopy if another brush is needed!

System_CAPS_pubmethodGetBrushCopy(StyleSetResourceId)

Retrieves a specific Brush from the StyleSet. If it's not in the current one, it looks up the parent chain to see if it can find it there. This is a copy. Caller is responsible for dispose.

System_CAPS_pubmethodGetFont(StyleSetResourceId)

Retrieves a specific Font from the StyleSet. If it's not in the current one, it looks up the parent chain to see if it can find it there.

System_CAPS_pubmethodGetFontHeight(StyleSetResourceId)

Returns the line spacing of the specified font (i.e., the height of a line of text) in world units. Line spacing is the ascent + the descent + some recommended extra. The ascent is the height of the character above the baseline, and the descent is the height of the character below the baseline. The extra is below the descent.

System_CAPS_pubmethodGetFontSize(StyleSetResourceId)

Returns the em height of the font with the specified id. This is the value specified when the font was created. Use GetFontHeight instead to get the height of a line of text when using this font.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetOverriddenBrushSettings(StyleSetResourceId)

Gets a BrushSettings object containing settings which have been overriden in this style set. If no settings have been overriden, this method returns null.

System_CAPS_pubmethodGetOverriddenFontSettings(StyleSetResourceId)

Gets a FontSettings object containing settings which have been overriden in this style set. If no settings have been overriden, this method returns null.

System_CAPS_pubmethodGetOverriddenPenSettings(StyleSetResourceId)

Gets a PenSettings object containing settings which have been overriden in this style set. If no settings have been overriden, this method returns null.

System_CAPS_pubmethodGetPen(StyleSetResourceId)

Retrieves a specific Pen from the StyleSet. If it's not in the current one, it looks up the parent chain to see if it can find it there. This is a singleton. Do not dispose - this will crash! Use immediately. Use GetPenCopy if another pen is needed!

System_CAPS_pubmethodGetPenCopy(StyleSetResourceId)

Retrieves a specific Pen from the StyleSet. If it's not in the current one, it looks up the parent chain to see if it can find it there. This is a copy. Caller is responsible for dispose.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodOverrideBrush(StyleSetResourceId, BrushSettings)

Overrides the specified Brush in the StyleSet.

System_CAPS_protmethodOverrideBrushWorker(StyleSetResourceId, StyleSetResourceId, BrushSettings)

Overrides the specified Brush in the StyleSet.

System_CAPS_pubmethodOverrideFont(StyleSetResourceId, FontSettings)

Overrides the specified Font in the StyleSet.

System_CAPS_protmethodOverrideFontWorker(StyleSetResourceId, StyleSetResourceId, FontSettings)

Overrides the specified Font in the StyleSet.

System_CAPS_pubmethodOverridePen(StyleSetResourceId, PenSettings)

Overrides the specified Pen in the StyleSet.

System_CAPS_protmethodOverridePenWorker(StyleSetResourceId, StyleSetResourceId, PenSettings)

Overrides the specified Pen in the StyleSet.

System_CAPS_pubmethodRefreshResources(Boolean)

Forces a re-resolution of the resources if necessary. The resources are resolved later when used.

System_CAPS_pubmethodRemoveBrush(StyleSetResourceId)

Removes a Brush from this StyleSet.

System_CAPS_pubmethodRemoveFont(StyleSetResourceId)

Removes a Font from this StyleSet.

System_CAPS_pubmethodRemovePen(StyleSetResourceId)

Removes a Pen from this StyleSet.

System_CAPS_pubmethodToString()

(Inherited from Object.)

Return to top
Show: