ITransformProvider.Rotate(Double) 메서드

정의

컨트롤을 회전합니다.

public:
 void Rotate(double degrees);
public void Rotate (double degrees);
abstract member Rotate : double -> unit
Public Sub Rotate (degrees As Double)

매개 변수

degrees
Double

컨트롤을 회전할 각도입니다. 양수이면 시계 방향으로 회전하고, 음수이면 시계 반대 방향으로 회전합니다.

예외

CanRotate 속성이 false인 경우

예제

다음 예제에서는 회전할 수 없는 사용자 지정 컨트롤에 대 한이 메서드의 가능한 구현을 보여 주세요.

/// <summary>
/// Rotates the provider the specified number of degrees.
/// </summary>
void ITransformProvider.Rotate(double degreesToRotate)
{
    throw new InvalidOperationException("Operation cannot be performed.");
}
''' <summary>
''' Rotates the provider the specified number of degrees.
''' </summary>
Private Sub Rotate(ByVal degreesToRotate As Double) Implements ITransformProvider.Rotate
    Throw New InvalidOperationException("Operation cannot be performed.")
End Sub

설명

개체 이동, 크기를 조정 하거나 결과 화면 위치가 컨테이너의 및 키보드 또는 마우스에 액세스할 수 없도록 좌표 완전히 것 회전할 수 없습니다. 예를 들어, 최상위 창이 화면에서 완전히 벗어나거나 이동할 때 또는 자식 개체의 컨테이너의 뷰포트 경계 외부에 이동 됩니다. 이러한 경우 개체는 컨테이너 경계 내에 있도록 재정의 위쪽 또는 왼쪽 좌표를 사용 하 여 최대한 요청 된 화면 좌표를 가깝게 배치 됩니다.

적용 대상

추가 정보