TextField.GetFontId(ShapeElement) 方法

定义

获取要为指定的 ShapeElement 实例绘制的字体的 id。

public:
 virtual Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ GetFontId(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape);
public virtual Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId GetFontId (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape);
abstract member GetFontId : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId
override this.GetFontId : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId
Public Overridable Function GetFontId (parentShape As ShapeElement) As StyleSetResourceId

参数

parentShape
ShapeElement

要在其上绘制的 ShapeElement。

返回

StyleSetResourceId

要用于指定的 ShapeElement 实例的字体的 id。

注解

默认情况下,此方法返回此 ShapeField 的默认字体 id。

若要为此 ShapeField 动态更改字体,请重写此方法。

适用于