GrapeCity.Xaml.SpreadSheet.Data
Centering Property
Example 


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
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

PrintInfo Class
PrintInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options