Export (0) Print
Expand All

ColorMatrix.Item Property

Gets or sets the value of the specified element of this ColorMatrix.

[C#] In C#, this property is the indexer for the ColorMatrix class.

[Visual Basic]
Public Default Property Item( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As Single
[C#]
public float this[
 int row,
 int column
] {get; set;}
[C++]
public: __property float get_Item(
 int row,
 int column
);
public: __property void set_Item(
 int row,
 int column,
   float
);
[JScript]
returnValue = ColorMatrixObject.Item(row, column);
ColorMatrixObject.Item(row, column) = returnValue;
-or-
returnValue = ColorMatrixObject(row, column);
ColorMatrixObject(row, column) = returnValue;

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Arguments [JScript]

row
The row of the element.
column
The column of the element.

Parameters [Visual Basic, C#, C++]

row
The row of the element.
column
The column of the element.

Property Value

The value of the specified element of this ColorMatrix.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ColorMatrix Class | ColorMatrix Members | System.Drawing.Imaging Namespace

Show:
© 2014 Microsoft