SimpleShape.Right 속성
픽셀 단위로 도형의 오른쪽 가장자리와 해당 컨테이너 클라이언트 영역의 왼쪽된 가장자리 사이의 거리를 가져옵니다.
네임스페이스: Microsoft.VisualBasic.PowerPacks
어셈블리: Microsoft.VisualBasic.PowerPacks.Vs(Microsoft.VisualBasic.PowerPacks.Vs.dll)
구문
‘선언
<BrowsableAttribute(False)> _
Public ReadOnly Property Right As Integer
[BrowsableAttribute(false)]
public int Right { get; }
[BrowsableAttribute(false)]
public:
property int Right {
int get ();
}
[<BrowsableAttribute(false)>]
member Right : int
function get Right () : int
속성 값
형식: System.Int32
Int32 는 픽셀 단위로 도형의 오른쪽 가장자리와 해당 컨테이너 클라이언트 영역의 왼쪽된 가장자리 사이의 거리를 나타냅니다.
설명
Right 속성 값은 Left 속성 값과 Width 속성 값의 합과 같습니다.
Right 속성은 읽기 전용입니다.사용자 속성 값이 직접 값을 변경 하 여 변경할 수 있습니다는 Left 또는 Width 속성 또는 전화는 SetBounds 메서드.
예제
다음 예제에서는 사용 하는 방법을 보여 줍니다 있는 Bottom 및 Right 속성에서 셰이프 위치를.이 예제에서는 두 대가 필요 RectangleShape 컨트롤 폼에 RectangleShape1 및 RectangleShape2 라는.
Private Sub RectangleShape1_Click() Handles RectangleShape1.Click
' Set the upper-left corner of Rectangle2
' to the lower-right corner of Rectangle1.
RectangleShape2.Left = RectangleShape1.Right
RectangleShape2.Top = RectangleShape1.Bottom
End Sub
private void rectangleShape1_Click(System.Object sender, System.EventArgs e)
{
// Set the upper-left corner of Rectangle2
// to the lower-right corner of Rectangle1.
rectangleShape2.Left = rectangleShape1.Right;
rectangleShape2.Top = rectangleShape1.Bottom;
}
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.
참고 항목
참조
Microsoft.VisualBasic.PowerPacks 네임스페이스
기타 리소스
Line 및 Shape 컨트롤 소개(Visual Studio)
방법: LineShape 컨트롤로 선 그리기(Visual Studio)
방법: OvalShape 및 RectangleShape 컨트롤을 사용하여 도형 그리기(Visual Studio)