次の方法で共有


Unit.Percentage メソッド

指定した倍精度浮動小数点数を使用して、 Percentage 型の Unit を作成します。

Public Shared Function Percentage( _
   ByVal n As Double _) As Unit
[C#]
public static Unit Percentage(doublen);
[C++]
public: static Unit Percentage(doublen);
[JScript]
public static function Percentage(
   n : double) : Unit;

パラメータ

  • n
    Unit の長さを表す倍精度浮動小数点数。

戻り値

倍精度浮動小数点数で指定した長さを表す Percentage 型の Unit

解説

Percentage 静的メソッド使用して、 n パラメータによって指定された長さを表す Percentage 型の Unit を作成します。

必要条件

プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ

参照

Unit 構造体 | Unit メンバ | System.Web.UI.WebControls 名前空間 | UnitType | Parse | Pixel | Point