Spread Silverlight Documentation
WordWrap Property (StyleInfo)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > StyleInfo Class : WordWrap Property
Gets or sets whether to wrap text.
Syntax
'Declaration
 
<System.ComponentModel.DefaultValueAttribute()>
Public Property WordWrap As System.Boolean
'Usage
 
Dim instance As StyleInfo
Dim value As System.Boolean
 
instance.WordWrap = value
 
value = instance.WordWrap
[System.ComponentModel.DefaultValue()]
public System.bool WordWrap {get; set;}

Property Value

true if the content supports word wrap; otherwise, false. The default value is false.
Example
This example sets the WordWrap property.
GrapeCity.Windows.SpreadSheet.Data.StyleInfo style = new GrapeCity.Windows.SpreadSheet.Data.StyleInfo();
style.WordWrap = true;
style.Name = "Style1";
GcSpreadSheet1.ActiveSheet.NamedStyles.Add(style);
GcSpreadSheet1.ActiveSheet.Cells[0, 0].StyleName = "Style1";
ListBox1.Items.Add(style.IsWordWrapSet.ToString());
//style.ResetWordWrap();
Dim style As New GrapeCity.Windows.SpreadSheet.Data.StyleInfo()
style.WordWrap = True
style.Name = "Style1"
GcSpreadSheet1.ActiveSheet.NamedStyles.Add(style)
GcSpreadSheet1.ActiveSheet.Cells(0, 0).StyleName = "Style1"
ListBox1.Items.Add(style.IsWordWrapSet.ToString())
'style.ResetWordWrap()
See Also

Reference

StyleInfo Class
StyleInfo Members