TextField.GetTextBrushId(DiagramClientView, ShapeElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- view
- DiagramClientView
- parentShape
- ShapeElement
The ShapeElement on which to draw.
Returns
The id of the brush to draw the text with for the specified ShapeElement instance.
Remarks
By default, this method returns the default text brush id.
To dynamically change the text brush for this ShapeField, override this method.