Label.FlatStyle プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

/** @property */ public FlatStyle get_FlatStyle () /** @property */ public void set_FlatStyle (FlatStyle value)
FlatStyle 値の 1 つ。既定値は Standard です。


FlatStyle プロパティが FlatStyle.System に設定されている場合、ImageList、Image、ImageIndex、ImageAlign の各プロパティの値は無視されます。また、この場合、TextAlign プロパティでは、垂直方向の配置以外のプロパティ値が無視されます。TextAlign プロパティの水平配置の各設定は、コントロールの上部に配置されます。たとえば、TextAlign プロパティに ContentAlignment.TopCenter、ContentAlignment.MiddleCenter、または ContentAlignment.BottomCenter を設定すると、FlatStyle プロパティが FlatStyle.System に設定されている場合は、Label コントロールのテキストは、コントロールの境界内の上中央部に配置されます。
![]() |
---|
.NET Framework Version 1.1 の場合、FlatStyle プロパティを FlatStyle.System に設定しても、TextAlign プロパティの値が無視されることはありません。さらに、このプロパティは、派生クラスである LinkLabel でも無効です。 |

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- Label.FlatStyle プロパティのページへのリンク