文字列と System.Globalization.CultureInfo オブジェクトを指定して、FontUnit クラスの新しいインスタンスを初期化します。
名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文
'宣言
Public Sub New ( _
value As String, _
culture As CultureInfo _
)
'使用
Dim value As String
Dim culture As CultureInfo
Dim instance As New FontUnit(value, culture)
public FontUnit (
string value,
CultureInfo culture
)
public:
FontUnit (
String^ value,
CultureInfo^ culture
)
public FontUnit (
String value,
CultureInfo culture
)
public function FontUnit (
value : String,
culture : CultureInfo
)
適用できません。
パラメータ
- value
フォント サイズを指定する文字列。
- culture
文字列比較に使用する CultureInfo。
解説
FontUnit コンストラクタは、次の表に示す value の文字列を認識して、FontUnit クラスの新しいインスタンスを作成します。
文字列値 |
FontUnit |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
どの場合でも、Type プロパティの値は NotSet になります。文字列比較では、大文字と小文字は区別されません。
value のその他すべての値については、value をフォント サイズとして処理し、Type プロパティを Point に設定することによって、FontUnit クラスの新しいインスタンスが作成されます。
プラットフォーム
Windows 98,Windows Server 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
Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。
バージョン情報
.NET Framework
サポート対象 : 3.0,2.0,1.1,1.0
参照
関連項目
FontUnit 構造体
FontUnit メンバ
System.Web.UI.WebControls 名前空間
FontUnit