Share via


PageSetup.Orientation 属性

定义

纵向或横向打印模式。

public:
 property Microsoft::Office::Interop::Excel::XlPageOrientation Orientation { Microsoft::Office::Interop::Excel::XlPageOrientation get(); void set(Microsoft::Office::Interop::Excel::XlPageOrientation value); };
public Microsoft.Office.Interop.Excel.XlPageOrientation Orientation { get; set; }
Public Property Orientation As XlPageOrientation

属性值

注解

对于 OLAP 数据源,当设置某一层中的一个字段的此属性值时,也会同时设置同一层中所有其他字段的方向。 维字段只能在数据透视表的行、列和页字段区域中进行定向。 度量字段则只能在数据区域中进行定向。 将某一层或数据字段设置为 xlHidden 时,会将该层或字段从数据透视表中移出。

适用于