Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / GradientStopList Class / Add Method
The GradientStop to add to the collection.


In This Topic
    Add Method (GradientStopList)
    In This Topic
    Adds a gradientStop to the GradientStopList. GradientStops must be added sequentially in the order of their offsets. Adding a GradientStop whose offset is less than the offset of the last GradientStop added to the collection will cause an ArgumentOutOfRangeException to be thrown.
    Syntax
    'Declaration
     
    Public Function Add( _
       ByVal gradientStop As GradientStop _
    ) As Integer
    'Usage
     
    Dim instance As GradientStopList
    Dim gradientStop As GradientStop
    Dim value As Integer
     
    value = instance.Add(gradientStop)
    public int Add( 
       GradientStop gradientStop
    )

    Parameters

    gradientStop
    The GradientStop to add to the collection.

    Return Value

    The index of the GradientStop added to the collection.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also