Επεξεργασία

Κοινή χρήση μέσω


ModelItemExtensions.Focus Method

Definition

Sets the keyboard focus.

Overloads

Focus(ModelItem)

Sets the keyboard focus on the specified designer item.

Focus(ModelItem, Int32)

Sets the keyboard focus on the specified designer item.

Focus(ModelItem)

Sets the keyboard focus on the specified designer item.

public:
[System::Runtime::CompilerServices::Extension]
 static void Focus(System::Activities::Presentation::Model::ModelItem ^ item);
public static void Focus (this System.Activities.Presentation.Model.ModelItem item);
static member Focus : System.Activities.Presentation.Model.ModelItem -> unit
<Extension()>
Public Sub Focus (item As ModelItem)

Parameters

item
ModelItem

The designer item to set focus on.

Remarks

If the specified designer item is not visible in the model tree view, this method expands the model tree up to a parent that is no more than five levels up.

Applies to

Focus(ModelItem, Int32)

Sets the keyboard focus on the specified designer item.

public:
[System::Runtime::CompilerServices::Extension]
 static void Focus(System::Activities::Presentation::Model::ModelItem ^ item, int level);
public static void Focus (this System.Activities.Presentation.Model.ModelItem item, int level);
static member Focus : System.Activities.Presentation.Model.ModelItem * int -> unit
<Extension()>
Public Sub Focus (item As ModelItem, level As Integer)

Parameters

item
ModelItem

The designer item to set focus on.

level
Int32

The maximum number of levels used to set a limit on the expansion of the model tree if the specified designer item is not visible.

Remarks

If the specified designer item is not visible in the model tree view, this method expands the model tree up to a parent that is no more than a maximum number of levels up specified by the level parameter.

Applies to