GradientStopCollection

GradientStopCollection

סקירה כללית

GradientStopCollection הוא שיעור ב Aspose.Slides FOSS עבור C++.

הוא מייצג אוסף של עצירות גרדינט.

שיעור זה מספק 30 שיטות לעבוד עם אובייקטים GradientStopCollection בתוכניות C++. שיטות זמינות כוללות: GradientStop, GradientStopCollection, add, as_i_collection, as_i_enumerable, begin, clear, const_iterator, end, init_internal, insert, iterator,4 שיטות נוספות. כל החברים הציבוריים זמינים לכל יישום C++ לאחר התקנת Aspose.Slides FOSS עבור חבילת C+. רכוש : GradientStop, const_iterator, iterator.

נכסים

שםסוגגישהתיאור
GradientStopGradientStopקראוהוא מקבל את הפסקת הגראדינט.
iteratoriteratorקראותנו את האיטראטור.
const_iteratorconst_iteratorקראומקבל את היתור המערבי.

שיטות

חתימהתיאור
GradientStop()GradientStopהנכס מספק גישה אל מרכיב GradientStop באוסף
GradientStop()GradientStop
GradientStop()GradientStop
GradientStop()GradientStop
GradientStop()GradientStop
iterator()iterator
iterator()iterator
const_iterator()const_iteratorהנכס מעלה איטראטור של ערך לקריאה בלבד של האוסף
const_iterator()const_iterator
GradientStopCollection()
init_internal(gs_lst_element: pugi::xml_node, save_callback: std::function<void()>)התחל את איסוף הפסקת הגראדינט תומך ב- XML.
save()שמור את השינויים באמצעות Save Callback.
set_color_from_arg(cf: SimpleColorFormat, color: Drawing::Color)הגדר צבע על SimpleColorFormat מתוך ערך ציור::צבע.
set_color_from_arg(cf: SimpleColorFormat, preset: PresetColor)הגדר צבע על SimpleColorFormat מתוך ערך ציור::צבע.
set_color_from_arg(cf: SimpleColorFormat, scheme: SchemeColor)הגדר צבע על SimpleColorFormat מתוך ערך ציור::צבע.
size()std::size_tהחזיר את מספר הפסקות הגראדינט.
add(position: float, color: Drawing::Color)GradientStopהוספת הפסקת גרדינט עם המיקום והצבע שנקבע.
add(position: float, preset: PresetColor)GradientStopהוספת הפסקת גרדינט עם המיקום והצבע שנקבע.
add(position: float, scheme: SchemeColor)GradientStopהוספת הפסקת גרדינט עם המיקום והצבע שנקבע.
insert(index: std::size_t, position: float, color: Drawing::Color)להוסיף הפסקת גרדינט על האינדקס הנדרש.
insert(index: std::size_t, position: float, preset: PresetColor)להוסיף הפסקת גרדינט על האינדקס הנדרש.
insert(index: std::size_t, position: float, scheme: SchemeColor)להוסיף הפסקת גרדינט על האינדקס הנדרש.
remove_at(index: std::size_t)הסר את הפסקת הגראדינט על האינדקס הנדרש.
clear()להסיר את כל הפסקות הגראדינט.
as_i_collection()std::vector<GradientStop>כל הגראדינט חוזר כווקטור.
as_i_enumerable()std::vector<GradientStop>החזיר את כל הפסקות הגראדינט כווקטור (כמו כמו_i_collection).
begin()iterator
end()iterator
begin()const_iterator
end()const_iterator

ראה גם

 עברית