Compartilhar via


PageSetup.CenterHorizontally Property

True if the sheet is centered horizontally on the page when it's printed.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property CenterHorizontally As Boolean
    Get
    Set
'Usage
Dim instance As PageSetup
Dim value As Boolean

value = instance.CenterHorizontally

instance.CenterHorizontally = value
bool CenterHorizontally { get; set; }

Property Value

Type: System.Boolean

See Also

Reference

PageSetup Interface

PageSetup Members

Microsoft.Office.Interop.Excel Namespace