//Create DocumentTarget
TXTextControl.DocumentTarget newTarget = new TXTextControl.DocumentTarget("Page1");
//Add newTarget to textControl1 DocumentTarget Collection
textControl1.DocumentTargets.Add(newTarget);
// Dsplay DocumentTarget properties in a textbox
textBox1.Text = "*** Begin Test " + System.DateTime.Now + " ***" + Environment.NewLine + Environment.NewLine +
"<<< Bounds property >>>" + Environment.NewLine +
"The X Coordinate is: " + newTarget.Bounds.X + Environment.NewLine +
"The Y Coordinate is: " + newTarget.Bounds.Y + Environment.NewLine +
"The Width is: " + newTarget.Bounds.Width + Environment.NewLine +
"The Height is: " + newTarget.Bounds.Height + Environment.NewLine +
"The Left value is: " + newTarget.Bounds.Left + Environment.NewLine +
"The Right value is: " + newTarget.Bounds.Right + Environment.NewLine +
"The Bottom value is: " + newTarget.Bounds.Bottom + Environment.NewLine +
"The Top value is: " + newTarget.Bounds.Top + Environment.NewLine +
"The Is Empty value is: " + newTarget.Bounds.IsEmpty + Environment.NewLine +
"The Size is: " + newTarget.Bounds.Size + Environment.NewLine +
"The Location value is: " + newTarget.Bounds.Location";
Dim newTarget As TXTextControl.DocumentTarget = New TXTextControl.DocumentTarget("Page1")
textControl1.DocumentTargets.Add(newTarget)
textBox1.Text = "*** Begin Test " & System.DateTime.Now & " ***" & Environment.NewLine + Environment.NewLine & "<<< Bounds property >>>" + Environment.NewLine & "The X Coordinate is: " + newTarget.Bounds.X + Environment.NewLine & "The Y Coordinate is: " + newTarget.Bounds.Y + Environment.NewLine & "The Width is: " + newTarget.Bounds.Width + Environment.NewLine & "The Height is: " + newTarget.Bounds.Height + Environment.NewLine & "The Left value is: " + newTarget.Bounds.Left + Environment.NewLine & "The Right value is: " + newTarget.Bounds.Right + Environment.NewLine & "The Bottom value is: " + newTarget.Bounds.Bottom + Environment.NewLine & "The Top value is: " + newTarget.Bounds.Top + Environment.NewLine & "The Is Empty value is: " + newTarget.Bounds.IsEmpty + Environment.NewLine & "The Size is: " + newTarget.Bounds.Size + Environment.NewLine & "The Location value is: " + newTarget.Bounds.Location
";"