Share via


ShapeElement.CanFocus Property

Gets the shape and verifies whether it can receive the focus.

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

Syntax

'Declaration
Public Overridable ReadOnly Property CanFocus As Boolean
'Usage
Dim instance As ShapeElement 
Dim value As Boolean 

value = instance.CanFocus
public virtual bool CanFocus { get; }
public:
virtual property bool CanFocus {
    bool get ();
}
public function get CanFocus () : boolean

Property Value

Type: System.Boolean
true if the shape can receive the focus; otherwise, false.

Remarks

By default, the return value is true.

.NET Framework Security

See Also

Reference

ShapeElement Class

ShapeElement Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace