TextField.GetTextBrushId(DiagramClientView, ShapeElement) 方法

定義

取得要針對指定的 ShapeElement 實例繪製文字之筆刷的識別碼。Gets the id of the brush to draw the text with for the specified ShapeElement instance.

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

參數

parentShape
ShapeElement

要在其上繪製的 ShapeElement。The ShapeElement on which to draw.

傳回

StyleSetResourceId

要針對指定的 ShapeElement 實例繪製文字之筆刷的識別碼。The id of the brush to draw the text with for the specified ShapeElement instance.

備註

根據預設,這個方法會傳回預設的文字筆刷識別碼。By default, this method returns the default text brush id.

若要以動態方式變更這個 ShapeField 的文字筆刷,請覆寫這個方法。To dynamically change the text brush for this ShapeField, override this method.

適用於