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

テキスト表示の縦の配置を取得または設定します。
構文
Public Property TextVerticalAdjustment As TextAdjustment
public TextAdjustment TextVerticalAdjustment {get; set;}

プロパティ値

テキストの縦の配置を示すTextAdjustmentの値。
使用例
次のサンプルコードは、ボタンに均等割り付けの回転文字を設定する方法を示します。
Imports GrapeCity.Win.Buttons 

' 文字の表示スタイルを作成します。 
Dim RotationTextAppearance1 As New RotationTextAppearance 

' スペース入りの均等割付と30度の回転を設定します。 
RotationTextAppearance1.Angle = 30 
RotationTextAppearance1.TextHorizontalAdjustment = TextAdjustment.DistributeWithSpace 
RotationTextAppearance1.TextVerticalAdjustment = TextAdjustment.None 

' スタイルをボタンに設定します。 
GcButton1.TextAppearance = RotationTextAppearance1
using GrapeCity.Win.Buttoons; 

// 文字の表示スタイルを作成します。 
RotationTextAppearance RotationTextAppearance1 = new RotationTextAppearance(); 

// スペース入りの均等割付と30度の回転を設定します。 
RotationTextAppearance1.Angle = 30; 
RotationTextAppearance1.TextHorizontalAdjustment = TextAdjustment.DistributeWithSpace; 
RotationTextAppearance1.TextVerticalAdjustment = TextAdjustment.None; 

// スタイルをボタンに設定します。 
gcButton1.TextAppearance = RotationTextAppearance1;
プラットフォーム

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

参照

RotationTextAppearance クラス
RotationTextAppearance メンバ

Send Feedback