Bagikan melalui


Compartment.CanMove Property

Gets the compartment shape and verifies whether a user can move it in the diagram.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Public Overrides ReadOnly Property CanMove As Boolean
public override bool CanMove { get; }
public:
virtual property bool CanMove {
    bool get () override;
}
abstract CanMove : bool with get 
override CanMove : bool with get
override function get CanMove () : boolean

Property Value

Type: Boolean
true if a user can move the compartment shape in the diagram; otherwise, false.

Remarks

By default, the return value is false.

.NET Framework Security

See Also

Reference

Compartment Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace