編輯

共用方式為


Style.HorizontalAlignment Property

Definition

Returns or sets the horizontal alignment for the specified object.

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

Property Value

Remarks

XlHAlign can be one of the following XlHAlign constants:

xlHAlignCenter

xlHAlignCenterAcrossSelection

xlHAlignDistributed

xlHAlignFill

xlHAlignGeneral

xlHAlignJustify

xlHAlignLeft

xlHAlignRight

Some of these constants may not be available to you, depending on the language support (U.S. English, for example) that you've selected or installed.

Applies to