Share via


StyleSet.GetFont Method

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.

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

Syntax

'Declaration
Public Function GetFont ( _
    fontId As StyleSetResourceId _
) As Font
public Font GetFont(
    StyleSetResourceId fontId
)
public:
Font^ GetFont(
    StyleSetResourceId^ fontId
)
member GetFont : 
        fontId:StyleSetResourceId -> Font
public function GetFont(
    fontId : StyleSetResourceId
) : Font

Parameters

Return Value

Type: Font

.NET Framework Security

See Also

Reference

StyleSet Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace