Control.RtlTranslateContent(ContentAlignment) 方法

定義

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

protected:
 System::Drawing::ContentAlignment RtlTranslateContent(System::Drawing::ContentAlignment align);
protected System.Drawing.ContentAlignment RtlTranslateContent (System.Drawing.ContentAlignment align);
member this.RtlTranslateContent : System.Drawing.ContentAlignment -> System.Drawing.ContentAlignment
Protected Function RtlTranslateContent (align As ContentAlignment) As ContentAlignment

參數

align
ContentAlignment

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

傳回

其中一個 ContentAlignment 值。One of the ContentAlignment 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.

適用於

另請參閱