GrapeCity.Xaml.SpreadSheet.Data
Centering Property
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > PrintInfo Class : Centering Property
Gets or sets how the printed page is centered.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property Centering As Centering
'Usage
 
Dim instance As PrintInfo
Dim value As Centering
 
instance.Centering = value
 
value = instance.Centering
[DefaultValue()]
public Centering Centering {get; set;}

Property Value

A value that specifies how to center the printed page. The default value is None.
Example
This example sets the Centering property.
GrapeCity.Xaml.SpreadSheet.Data.PrintInfo printset = new GrapeCity.Xaml.SpreadSheet.Data.PrintInfo();
printset.BestFitRows = true;
printset.Centering = GrapeCity.Xaml.SpreadSheet.Data.Centering.Both;
printset.ColumnEnd = 10;
printset.ColumnStart = 0;
gcSpreadSheet1.Sheets[0].PrintInfo = printset;
Dim printset As New GrapeCity.Xaml.SpreadSheet.Data.PrintInfo()
printset.BestFitRows = True
printset.Centering = GrapeCity.Xaml.SpreadSheet.Data.Centering.Both
printset.ColumnEnd = 10
printset.ColumnStart = 0
GcSpreadSheet1.Sheets(0).PrintInfo = printset
See Also

Reference

PrintInfo Class
PrintInfo Members