共用方式為


StyleSet.GetFont(StyleSetResourceId) Method

Definition

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.

public:
 System::Drawing::Font ^ GetFont(Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ fontId);
public System.Drawing.Font GetFont (Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId fontId);
member this.GetFont : Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId -> System.Drawing.Font
Public Function GetFont (fontId As StyleSetResourceId) As Font

Parameters

fontId
StyleSetResourceId

Id of font to retrieve.

Returns

A clone of the requested Font.

Applies to