Add()

GradientStopCollection::Add(float, System::Drawing::Color) method

Creates the new gradient stop and adds it to the end of collection.

System::SharedPtr<IGradientStop> Aspose::Slides::GradientStopCollection::Add(float position, System::Drawing::Color color) override

Arguments

ParameterTypeDescription
positionfloatPosition of the new gradient stop.
colorSystem::Drawing::ColorColor of the new radient stop.

Return Value

Index of the new gradient stop in the collection.

GradientStopCollection::Add(float, PresetColor) method

Creates the new gradient stop and adds it to the end of collection.

System::SharedPtr<IGradientStop> Aspose::Slides::GradientStopCollection::Add(float position, PresetColor presetColor) override

Arguments

ParameterTypeDescription
positionfloatPosition of the new gradient stop.
presetColorPresetColorColor of the new radient stop.

Return Value

Index of the new gradient stop in the collection.

GradientStopCollection::Add(float, SchemeColor) method

Creates the new gradient stop and adds it to the end of collection.

System::SharedPtr<IGradientStop> Aspose::Slides::GradientStopCollection::Add(float position, SchemeColor schemeColor) override

Arguments

ParameterTypeDescription
positionfloatPosition of the new gradient stop.
schemeColorSchemeColorColor of the new radient stop.

Return Value

Index of the new gradient stop in the collection.

See Also