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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.