Spread Windows Forms 7.0 Product Documentation
TextWrap Property
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > ElementControl Class : TextWrap Property


Glossary Item Box

Gets or sets whether to automatically wrap text without line breaks.

Syntax

Visual Basic (Declaration) 
Public Overridable Property TextWrap As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ElementControl
Dim value As Boolean
 
instance.TextWrap = value
 
value = instance.TextWrap
C# 
public virtual bool TextWrap {get; set;}

Property Value

Boolean value: true to wrap text automatically; false otherwise

Remarks

When this property is true, lines of text automatically break to succeeding lines when they exceed the width of the control. When this property is false, lines do not break unless they contain an end-of-line character (carriage return).

Specify the orientation of text by setting the TextOrientation property, as applicable.

Example

This example shows the setting to allow text wrapping.
C#Copy Code
element.TextWrap = true;
Visual BasicCopy Code
element.TextWrap = True;

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.