ShapeField.Focused Method
Gets the shape field and verifies whether it has focus.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
'Declaration
Public Function Focused ( _
parentShape As ShapeElement, _
view As DiagramClientView _
) As Boolean
public bool Focused(
ShapeElement parentShape,
DiagramClientView view
)
public:
bool Focused(
ShapeElement^ parentShape,
DiagramClientView^ view
)
member Focused :
parentShape:ShapeElement *
view:DiagramClientView -> bool
public function Focused(
parentShape : ShapeElement,
view : DiagramClientView
) : boolean
parentShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElementThe parent shape of the shape field.
view
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientViewThe diagram client view.
Type: System.Boolean
true if the shape field has focus; otherwise, false.
- 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.