SequentialWorkflowHeaderFooter.TextRectangle Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Üst bilgi veya alt bilgiyle ilişkili metnin sınırlayıcı dikdörtgenini alır.
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
Özellik Değeri
Rectangle ile SequentialWorkflowHeaderFooterilişkili için sınırları Text tanımlayan.
Örnekler
Aşağıdaki örnekte özelliğin nasıl geçersiz kılınacak olduğu gösterilmektedir TextRectangle . Bu örnekte , TextRectangle sınırları SequentialWorkflowHeaderFooter ve konumu ve boyutu ImageRectanglekullanılarak hesaplanır.
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