TextField.GetFontId(ShapeElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取要为指定的 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。
返回
要用于指定的 ShapeElement 实例的字体的 id。
注解
默认情况下,此方法返回此 ShapeField 的默认字体 id。
若要为此 ShapeField 动态更改字体,请重写此方法。