GrapeCity.Xaml.SpreadSheet.Data
Underline Property (StyleInfo)
Example 


Gets or sets a value that indicates whether Underline is set.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Overridable Property Underline As Boolean
'Usage
 
Dim instance As StyleInfo
Dim value As Boolean
 
instance.Underline = value
 
value = instance.Underline
[DefaultValue()]
public virtual bool Underline {get; set;}

Property Value

false if not set.
Example
This example sets the Underline property.
GrapeCity.Xaml.SpreadSheet.Data.StyleInfo style = new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo("TextStyle");
style.Underline = true;
style.Strikethrough = false;
gcSpreadSheet1.Sheets[0].NamedStyles.Add(style);
gcSpreadSheet1.Sheets[0].Cells[0, 0].StyleName = "TextStyle";
gcSpreadSheet1.Sheets[0].Cells[0, 0].Text = "Style";
listBox1.Items.Add(style.IsStrikethroughSet().ToString());
listBox1.Items.Add(style.IsUnderlineSet().ToString());
//style.ResetStrikethrough();
//style.ResetUnderline();
Dim style As New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo("TextStyle")
style.Underline = True
style.Strikethrough = False
GcSpreadSheet1.Sheets(0).NamedStyles.Add(style)
GcSpreadSheet1.Sheets(0).Cells(0, 0).StyleName = "TextStyle"
GcSpreadSheet1.Sheets(0).Cells(0, 0).Text = "Style"
listBox1.Items.Add(style.IsStrikethroughSet().ToString())
listBox1.Items.Add(style.IsUnderlineSet().ToString())
'style.ResetStrikethrough()
'style.ResetUnderline()
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

StyleInfo Class
StyleInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options