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


GrapeCity.Xaml.SpreadSheet.Data Namespace > StyleInfo Class : VerticalAlignment Property
Gets or sets the vertical alignment of the cell contents.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property VerticalAlignment As CellVerticalAlignment
'Usage
 
Dim instance As StyleInfo
Dim value As CellVerticalAlignment
 
instance.VerticalAlignment = value
 
value = instance.VerticalAlignment
[DefaultValue()]
public CellVerticalAlignment VerticalAlignment {get; set;}

Property Value

A CellVerticalAlignment object that specifies the vertical alignment for the cell. The default value is General.
Example
This example uses the VerticalAlignment property.
gcSpreadSheet1.Sheets[0].NamedStyles.Add(new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo() { Background = new SolidColorBrush(Windows.UI.Colors.Red), Name = "aaa", VerticalAlignment = GrapeCity.Xaml.SpreadSheet.Data.CellVerticalAlignment.Center });
gcSpreadSheet1.Sheets[0].Cells[0, 0].StyleName = "aaa";
GcSpreadSheet1.Sheets(0).NamedStyles.Add(New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo() With {.Background = New SolidColorBrush(Windows.UI.Colors.Red), .Name = "aaa", .VerticalAlignment = GrapeCity.Xaml.SpreadSheet.Data.CellVerticalAlignment.Center})
GcSpreadSheet1.Sheets(0).Cells(0, 0).StyleName = "aaa"
See Also

Reference

StyleInfo Class
StyleInfo Members