次の方法で共有


ColorMatrix.Item プロパティ

この ColorMatrix の指定した要素の値を取得または設定します。

[C#] C# では、このプロパティは ColorMatrix クラスのインデクサになります。

Public Default Property Item( _
   ByVal row As Integer, _   ByVal column As Integer _) As Single
[C#]
public float this[introw,intcolumn] {get; set;}
[C++]
public: __property float get_Item(introw,intcolumn);public: __property void set_Item(introw,intcolumn,   float);
[JScript]
returnValue = ColorMatrixObject.Item(row, column);ColorMatrixObject.Item(row, column) = returnValue;またはreturnValue = ColorMatrixObject(row, column);ColorMatrixObject(row, column) = returnValue;

[JScript] JScript では、この型で定義されている既定のインデックス プロパティを使用することができます。しかし、独自のインデックス プロパティを明示的に定義することはできません。ただし、このクラスの expando 属性を指定すると、既定のインデックス プロパティが提供されます。提供されるインデックス プロパティの型は Object 型であり、インデックス型は String になります。

引数 [JScript]

  • row
    要素の行。
  • column
    要素の列。

パラメータ [Visual Basic, C#, C++]

  • row
    要素の行。
  • column
    要素の列。

プロパティ値

この ColorMatrix の指定した要素の値。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

ColorMatrix クラス | ColorMatrix メンバ | System.Drawing.Imaging 名前空間