TextShape textBoxWidth

Gets or sets the width of the boundary box for the shape. The boundary box will be used to align text in the marking field.

public float TextBoxWidth { get; set; }

 

Return value

empty  

 

Example

Copy
TextShape textShape = new TextShape();

textShape.AddText("Sample text Sample text", "Arial", FontStyle.Regular, 10f, 1f);

textShape.TextBoxHeight = 20;
textShape.TextBoxWidth = 60;

textShape.Location.X = 0;
textShape.Location.Y = 0;


textShape.LineSpaceStyle = TextLineSpaceStyle.Factor;
textShape.LineSpace = 1f;

vectorImage.AddText(textShape);