PowerTools PlusPak for Windows Forms 8.0J
VerticalFarEastSettings プロパティ
使用例 

GrapeCity.Win.Common.TextOrientation.VerticalFarEast 方向の設定を取得または設定します。
構文
Public Property VerticalFarEastSettings As VerticalFarEastSettings
public VerticalFarEastSettings VerticalFarEastSettings {get; set;}

プロパティ値

TextOrientationGrapeCity.Win.Common.TextOrientation.VerticalFarEast のときの VerticalFarEast に関する設定を表す VerticalFarEastSettings。デフォルト値は null 参照 (Visual Basicでは Nothing) です。
使用例

次のサンプルコードは、VerticalFarEastSettings プロパティの使用方法と GcLabel コントロールの作成方法を示します。

private void GcLabelVerticalFarEastSettings()
{
    // Create a instance of GcLabel.
    GrapeCity.Win.Buttons.GcLabel gcLabel1 = new GrapeCity.Win.Buttons.GcLabel();

    // Initialize the Name, Location and Size of GcLabel
    gcLabel1.Name = "gcLabel1";
    gcLabel1.Location = new System.Drawing.Point(0, 0);
    gcLabel1.Size = new System.Drawing.Size(200, 100);

    // Set TextBackground
    gcLabel1.Text = "ちに01234らない";            
    gcLabel1.TextOrientation = GrapeCity.Win.Common.TextOrientation.VerticalFarEast;
    Buttons.VerticalFarEastSettings settings = new Buttons.VerticalFarEastSettings();
    settings.HorizontalInVertical = true;
    settings.MaxHorizontalChars = 3;
    settings.FitToLine = true;
    gcLabel1.VerticalFarEastSettings = settings;

    // Add gcLabel1 to the form
    this.Controls.Add(gcLabel1);
}
Private Sub GcLabelVerticalFarEastSettings()
    ' Create a instance of GcLabel.
    Dim gcLabel1 As New GcLabel()

    ' Initialize the Name, Location and Size of GcLabel
    gcLabel1.Name = "gcLabel1"
    gcLabel1.Location = New System.Drawing.Point(0, 0)
    gcLabel1.Size = New System.Drawing.Size(200, 100)

    ' Set TextBackground
    gcLabel1.Text = "ちに01234らない"
    gcLabel1.TextOrientation = Global.GrapeCity.Win.Common.TextOrientation.VerticalFarEast
    Dim settings As New VerticalFarEastSettings()
    settings.HorizontalInVertical = True
    settings.MaxHorizontalChars = 3
    settings.FitToLine = True
    gcLabel1.VerticalFarEastSettings = settings

    ' Add gcLabel1 to the form
    Me.Controls.Add(gcLabel1)
End Sub
プラットフォーム

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

GcLabel クラス
GcLabel メンバ

Send Feedback