共用方式為


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

適用於

另請參閱