Control.RtlTranslateHorizontal(HorizontalAlignment) 方法

定義

將指定的 HorizontalAlignment 轉換為適當的 HorizontalAlignment,以支援由右至左的文字。Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text.

protected:
 System::Windows::Forms::HorizontalAlignment RtlTranslateHorizontal(System::Windows::Forms::HorizontalAlignment align);
protected System.Windows.Forms.HorizontalAlignment RtlTranslateHorizontal (System.Windows.Forms.HorizontalAlignment align);
member this.RtlTranslateHorizontal : System.Windows.Forms.HorizontalAlignment -> System.Windows.Forms.HorizontalAlignment
Protected Function RtlTranslateHorizontal (align As HorizontalAlignment) As HorizontalAlignment

參數

align
HorizontalAlignment

其中一個 HorizontalAlignment 值。One of the HorizontalAlignment values.

傳回

其中一個 HorizontalAlignment 值。One of the HorizontalAlignment values.

備註

如果 RightToLeftRightToLeft 屬性設定為 No,則傳回值會等於傳入的 align 參數。If the RightToLeft property of RightToLeft is set to No, the return value is equal to the align parameter passed in.

適用於

另請參閱