GetColorIndex(Point) Method (WpfPaletteViewer)
Returns the index of the color.
'Declaration
Public Function GetColorIndex( _
ByVal As System.Windows.Point _
) As System.Int32
public System.Int32 GetColorIndex(
System.Windows.Point
)
public: System.Int32 GetColorIndex(
System.Windows.Point
)
public:
System.Int32 GetColorIndex(
System.Windows.Point
)
Parameters
- point
- The point on viewer.
Return Value
The index of color if color is found; otherwise, -1.
Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5