ModelItemExtensions.Focus Method (ModelItem, Int32)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sets the keyboard focus on the specified designer item.

Namespace:   System.Activities.Presentation.Model
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public static void Focus(
	this ModelItem item,
	int level
)

Parameters

item
Type: System.Activities.Presentation.Model.ModelItem

The designer item to set focus on.

level
Type: System.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.

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.

.NET Framework
Available since 4.0
Return to top
Show: