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 속성을 재정의하는 방법을 보여 줍니다. 이 예제에서 TextRectangleCompositeActivityDesigner의 경계 및 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

설명

디자이너에서 텍스트 설명이 표시되는 위치를 결정하기 위해 사용합니다.

적용 대상