ITransformProvider.CanRotate 属性

定义

获取一个值,该值指示控件是否可旋转。

public:
 property bool CanRotate { bool get(); };
public bool CanRotate { get; }
member this.CanRotate : bool
Public ReadOnly Property CanRotate As Boolean

属性值

Boolean

如果元素可旋转,则为 true;否则为 false

示例

以下示例演示无法旋转的控件的此方法的实现。

/// <summary>
/// Specifies whether rotating is supported.
/// </summary>
bool ITransformProvider.CanRotate
{
    get
    {
        return false;
    }
}
''' <summary>
''' Specifies whether rotating is supported.
''' </summary>
Private ReadOnly Property CanRotate() As Boolean Implements ITransformProvider.CanRotate
    Get
        Return False
    End Get
End Property

适用于

另请参阅