Condividi tramite


SequentialWorkflowHeaderFooter.TextRectangle Proprietà

Definizione

Ottiene il rettangolo di delimitazione per il testo associato all'intestazione o al piè di pagina.

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

Valore della proprietà

Oggetto Rectangle che definisce i limiti per la proprietà Text associata a SequentialWorkflowHeaderFooter.

Esempio

Nell'esempio seguente viene illustrato come eseguire l'override della proprietà TextRectangle. In questo esempio l'oggetto TextRectangle è calcolato mediante i limiti di SequentialWorkflowHeaderFooter così come il percorso e la dimensione di 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

Si applica a