StyleSet.GetFont(StyleSetResourceId) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 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。
返回
所请求字体的克隆。