TX Text Control .NET Server

Insert Method

Method|Introduced in 23.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.Core.SDK as TXDrawing.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXDrawing.dll

Description

Inserts an object of the type Shape to the collection at a specified index.

Syntax

public void Insert(int index, Shape shape);

Parameters

ParameterDescription
index

Specifies the index where to insert the speicified shape.

shape

Specifies the shape to insert at the specified index.

Examples

The following example uses Insert in a focused Shape Collection workflow. The created object is then available to the surrounding document workflow.

shapeCollection.Insert(1, new TXTextControl.Drawing.Shape());
Console.WriteLine("Shape Collection is ready for use.");