SequentialWorkflowHeaderFooter.TextRectangle Property
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 bounding rectangle for the text associated with the header or footer.
public:
virtual property System::Drawing::Rectangle TextRectangle { System::Drawing::Rectangle get(); };
public virtual System.Drawing.Rectangle TextRectangle { get; }
member this.TextRectangle : System.Drawing.Rectangle
Public Overridable ReadOnly Property TextRectangle As Rectangle
Property Value
The Rectangle that defines the bounds for the Text associated with the SequentialWorkflowHeaderFooter.
Examples
The following example shows how to override the TextRectangle property. In this example, the TextRectangle is calculated using the Bounds of the SequentialWorkflowHeaderFooter as well as the location and size of the ImageRectangle.
protected override Rectangle TextRectangle
{
get
{
return new Rectangle(
this.Bounds.Left + 2,
this.ImageRectangle.Bottom,
this.Bounds.Width - 4,
this.Bounds.Height - this.ImageRectangle.Height - 1);
}
}
Protected Overrides ReadOnly Property TextRectangle() As Rectangle
Get
Return New Rectangle( _
Me.Bounds.Left + 2, _
Me.ImageRectangle.Bottom, _
Me.Bounds.Width - 4, _
Me.Bounds.Height - Me.ImageRectangle.Height - 1)
End Get
End Property
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈