ITransformProvider.CanMove 属性

定义

获取一个值,该值指示控件是否可移动。

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

属性值

Boolean

如果可以移动该元素,则为 true;否则为 false

示例

以下示例演示了可移动的控件的此方法的实现。

/// <summary>
/// Specifies whether moving is supported.
/// </summary>
bool ITransformProvider.CanMove
{
    get
    {
        return true;
    }
}
''' <summary>
''' Specifies whether moving is supported.
''' </summary>
Private ReadOnly Property CanMove() As Boolean Implements ITransformProvider.CanMove
    Get
        Return True
    End Get
End Property

适用于

另请参阅