This property sets whether or not word wrapping is used in the Text object.

[Visual Basic] Public Property WordWrap As Boolean
[C#] public bool WordWrap {get; set;}

Property Value

True: Word wrapping is used in the Text object.

True: Word wrapping is not used in the Text object. The entered text will continue on the same line unless the Enter key is used start a new line.

Default value is True

Explanation

The WordWrap property sets whether or not word wrapping is used in the Text object. The default value is True

When the WordWrap property is True, text being entered into the Text object is wrapped to a new line when the text reaches the end of the Text object. When this text is drawn to the image, it will be drawn as it appears in the Text object.

If the text is too large to be displayed fully within the dimensions of the Text object, the latter part of the text will not be displayed. To change the size of the Text object, select the Text object and move the sides of the Text object (The top, right, left, or bottom sides). Text will continue to be wrapped within the Text object while you are adjusting its size. You can force text to a new line by using the Enter key.

Selecting the Text object and moving the corners, will change the size of the Text object and the text size at the same time.

For more information about how the text is drawn to the image when the WordWrap property is true, please refer to the overloaded DrawText method [DrawText(RectangleF) method]

When the WordWrap property is False, the text will not be wrapped within the Text object. Text will continue on the same line until the Enter key is pressed. If the text is too long to appear in the text object, only the portion currently being entered will be displayed. Once the text has been entered, all text will be drawn on the same line unless a new line was forced using the Enter key.

The WordWrap property value can be changed and the Text can be altered after it is drawn by selecting the Text object and right clicking to bring up the Context Menu. In the Context Menu, select "Properties" to display the Properties Window where changes can be made to the text. The Properties Window can also be displayed by executing the ShowPropertyDialog method.

For more information about how the text is drawn to the image when the WordWrap property is false, please refer to the overloaded DrawText method [DrawText(Point) method]

To make changes to an object after it has been drawn, select the object and right click to display the "context menu", execute the ShowPropertyDialog method, or execute the SetSelectedObjectWordWrap method.

Also See

ImageKit.Edit Members | Newtone.ImageKit.Win.ImageKit

 

The ImageKit.NET2 is created by Newtone Corporation