StyleSet.GetFont(StyleSetResourceId) 方法

定义

从 StyleSet 中检索特定字体。 如果它不在当前中,它将查找父链,以确定它是否可以找到它。

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

参数

fontId
StyleSetResourceId

要检索的字体的 Id。

返回

Font

所请求字体的克隆。

适用于