TextField::GetFontId Method (ShapeElement^)

 

Gets the id of the font to draw with for the specified ShapeElement instance.

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

public:
virtual StyleSetResourceId^ GetFontId(
	ShapeElement^ parentShape
)

Parameters

parentShape
Type: Microsoft.VisualStudio.Modeling.Diagrams::ShapeElement^

The ShapeElement on which to draw.

By default, this method returns the default font id of this ShapeField. To dynamically change the font for this ShapeField, override this method. Adapt the example at TextField.

The default value is DiagramFonts.ShapeText.

Return to top
Show: