次の方法で共有


Printer.RightToLeft プロパティ

右から左のシステムでテキスト表示の方向を示す Boolean 値を取得または設定します。

名前空間:  Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
アセンブリ:  Microsoft.VisualBasic.PowerPacks.Vs (Microsoft.VisualBasic.PowerPacks.Vs.dll 内)

構文

'宣言
Public Property RightToLeft As Boolean
public bool RightToLeft { get; set; }
public:
property bool RightToLeft {
    bool get ();
    void set (bool value);
}
member RightToLeft : bool with get, set
function get RightToLeft () : boolean 
function set RightToLeft (value : boolean)

プロパティ値

型 : Boolean
Boolean を返します。

解説

戻り値が trueの場合、Printer オブジェクトは Windows アラビア語またはヘブライ語 Windows などの右から左オペレーティング システムで実行しています。 テキストが右から左に動作します。

戻り値が falseの場合、Printer オブジェクトは、左から右のオペレーティング システムでは、英語の Windows などの実行中、テキストは左から右に実行されます。 コンテナーがこのアンビエント プロパティを実装しなければ、既定値です。

注意

Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 名前空間の関数とオブジェクトは、Visual Basic 6.0 から Visual Basic へのアップグレード ツールで使用するために用意されています。ほとんどの場合、これらの関数とオブジェクトは、.NET Framework の他の名前空間にある機能と重複しています。Visual Basic 6.0 のコード モデルが .NET Framework の実装と著しく異なる場合を除いて、これらの関数およびオブジェクトを使用する必要はありません。

次の例に RightToLeft プロパティ値を取得する方法を示します。

Dim Printer As New Printer
If Printer.RightToLeft = True Then
    Printer.Print("Printing from right to left.")
Else
    Printer.Print("Printing from left to right.")
End If
Printer.EndDoc()

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

Printer クラス

Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 名前空間

その他の技術情報

Printer Compatibility Library

How to: Fix Upgrade Errors by Using the Printer Compatibility Library (Visual Basic)

Deploying Applications That Reference the Printer Compatibility Library