Gets or sets the vertical alignment of the content in a cell.
public Infragistics.Documents.Excel.VerticalCellAlignment VerticalAlignment {get; set;}
'Declaration
Public Property VerticalAlignment As Infragistics.Documents.Excel.VerticalCellAlignment
Property Value
The vertical alignment of the content in a cell.
The following snippet demonstrates how to control the formatting of GroupByRecords when exported.
Dim groupFormatSettings As New FormatSettings()
groupFormatSettings.BorderStyle = Infragistics.Excel.CellBorderLineStyle.Double
groupFormatSettings.BottomBorderColor = Colors.Red
groupFormatSettings.FontStrikeout = Infragistics.Excel.ExcelDefaultableBoolean.True
groupFormatSettings.FontStyle = FontStyles.Italic
groupFormatSettings.FontUnderlineStyle = Infragistics.Excel.FontUnderlineStyle.Double
groupFormatSettings.LeftBorderColor = Colors.Green
groupFormatSettings.RightBorderColor = Colors.Blue
groupFormatSettings.TopBorderColor = Colors.Purple
groupFormatSettings.VerticalAlignment = Infragistics.Excel.VerticalCellAlignment.Center
DataPresenterExcelExporter.SetExcelGroupFormatSettings(Me.Grid.FieldSettings, groupFormatSettings)
'Declaration
Public Property VerticalAlignment As Infragistics.Documents.Excel.VerticalCellAlignment
FormatSettings groupFormatSettings = new FormatSettings();
groupFormatSettings.BorderStyle = Infragistics.Excel.CellBorderLineStyle.Double;
groupFormatSettings.BottomBorderColor = Colors.Red;
groupFormatSettings.FontStrikeout = Infragistics.Excel.ExcelDefaultableBoolean.True;
groupFormatSettings.FontStyle = FontStyles.Italic;
groupFormatSettings.FontUnderlineStyle = Infragistics.Excel.FontUnderlineStyle.Double;
groupFormatSettings.LeftBorderColor = Colors.Green;
groupFormatSettings.RightBorderColor = Colors.Blue;
groupFormatSettings.TopBorderColor = Colors.Purple;
groupFormatSettings.VerticalAlignment = Infragistics.Excel.VerticalCellAlignment.Center;
DataPresenterExcelExporter.SetExcelGroupFormatSettings(this.Grid.FieldSettings, groupFormatSettings);
'Declaration
Public Property VerticalAlignment As Infragistics.Documents.Excel.VerticalCellAlignment
<igDP:XamDataGrid.FieldSettings>
<igDP:FieldSettings>
<igExcelExporter:DataPresenterExcelExporter.ExcelGroupFormatSettings>
<igExcelExporter:FormatSettings
BorderStyle="Double"
BottomBorderColor="Red"
FontStrikeout="True"
FontStyle="Italic"
FontUnderlineStyle="Double"
LeftBorderColor="Green"
RightBorderColor="Blue"
TopBorderColor="Purple"
VerticalAlignment="Center" />
</igExcelExporter:DataPresenterExcelExporter.ExcelGroupFormatSettings>
</igDP:FieldSettings>
</igDP:XamDataGrid.FieldSettings>
'Declaration
Public Property VerticalAlignment As Infragistics.Documents.Excel.VerticalCellAlignment
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2