CompositeActivityDesigner.TextRectangle プロパティ

定義

説明用の四角形の論理座標値を取得します。

protected:
 virtual property System::Drawing::Rectangle TextRectangle { System::Drawing::Rectangle get(); };
protected override System.Drawing.Rectangle TextRectangle { get; }
member this.TextRectangle : System.Drawing.Rectangle
Protected Overrides ReadOnly Property TextRectangle As Rectangle

プロパティ値

Rectangle

説明用の四角形の論理座標値。

TextRectangle プロパティをオーバーライドする方法を次の例に示します。 この例では、TextRectangle は、CompositeActivityDesigner の Bounds と、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

注釈

テキスト記述が表示されるデザイナー上の場所を確認するのに使用します。

適用対象