IItemContainerGenerator.StartAt Method

Definition

Prepares the generator to generate items, starting at the specified GeneratorPosition, and in the specified GeneratorDirection.

Overloads

StartAt(GeneratorPosition, GeneratorDirection)

Prepares the generator to generate items, starting at the specified GeneratorPosition, and in the specified GeneratorDirection.

StartAt(GeneratorPosition, GeneratorDirection, Boolean)

Prepares the generator to generate items, starting at the specified GeneratorPosition, and in the specified GeneratorDirection, and controlling whether or not to start at a generated (realized) item.

StartAt(GeneratorPosition, GeneratorDirection)

Prepares the generator to generate items, starting at the specified GeneratorPosition, and in the specified GeneratorDirection.

C#
public IDisposable StartAt(System.Windows.Controls.Primitives.GeneratorPosition position, System.Windows.Controls.Primitives.GeneratorDirection direction);

Parameters

position
GeneratorPosition

A GeneratorPosition, that specifies the position of the item to start generating items at.

direction
GeneratorDirection

A GeneratorDirection that specifies the direction which to generate items.

Returns

An IDisposable object that tracks the lifetime of the generation process.

Remarks

StartAt must be called before GenerateNext is called.

StartAt sets Status to GeneratingContainers; when the IDisposable is disposed, the status changes to ContainersGenerated or Error, as appropriate.

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

StartAt(GeneratorPosition, GeneratorDirection, Boolean)

Prepares the generator to generate items, starting at the specified GeneratorPosition, and in the specified GeneratorDirection, and controlling whether or not to start at a generated (realized) item.

C#
public IDisposable StartAt(System.Windows.Controls.Primitives.GeneratorPosition position, System.Windows.Controls.Primitives.GeneratorDirection direction, bool allowStartAtRealizedItem);

Parameters

position
GeneratorPosition

A GeneratorPosition, that specifies the position of the item to start generating items at.

direction
GeneratorDirection

Specifies the position of the item to start generating items at.

allowStartAtRealizedItem
Boolean

A Boolean that specifies whether to start at a generated (realized) item.

Returns

An IDisposable object that tracks the lifetime of the generation process.

Remarks

See StartAt.

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10