DisplayTextFormatterSupport

DisplayTextFormatterSupport

סקירה כללית

DisplayTextFormatterSupport הוא שיעור ב Aspose.Cells FOSS עבור C++.

שיטות עוזר פנימיות עבור הצגת טקסט פורמט ערכים מספרים, טקס ו/או תאריך/שעת.

שיעור זה מספק 17 שיטות לעבוד עם אובייקטים DisplayTextFormatterSupport בתוכניות C++. שיטות זמינות כוללות: ContainsNumericPlaceholder, ConvertToDouble, DisplayTextFormatterSupport, EvaluateCondition, ExpandSectionPattern, GetAbsoluteNumericValue, IsNumericValue, ParseSections, SanitizeNumericSection, SelectDateTimeSection, SelectNumericSection, SelectTextSection,5 שיטות נוספות. כל החברים הציבוריים זמינים לכל יישום C++ לאחר התקנת Aspose.Cells FOSS עבור חבילת C+.

שיטות

חתימהתיאור
DisplayTextFormatterSupport()צלצול DisplayTextFormatterSupport על האינדקס הזה DisplayTextFormatterSupport.
SelectNumericSection(sections: std::vector<DisplayFormatSectionInfo>, numericValue: double, useAbsoluteValue: bool)std::optional<DisplayFormatSectionInfo>בחר את החלק המספר המתאים מתוך קוד פורמט parsed.חזיר std::nullopt כאשר החלקה ריקה.
SelectTextSection(sections: std::vector<DisplayFormatSectionInfo>)std::optional<DisplayFormatSectionInfo>בחר את סעיף הטקסט (סעיף הרביעי, או הראשון המכיל ‘@’). חוזר std::nullopt אם אין סעיפים טקסט.
SelectDateTimeSection(sections: std::vector<DisplayFormatSectionInfo>)std::optional<DisplayFormatSectionInfo>בחר את החלק הראשון של תאריך/שעת לא פנוי (בין שלושת הראשונים).חזיר std::nullopt אם כל אלה הם לבן.
ParseSections(formatCode: std::string_view)std::vector<DisplayFormatSectionInfo>להדביק קוד פורמט לתוך תיאור סעיף.
SplitSections(formatCode: std::string_view)std::vector<std::string>הוא מחלק קוד פורמט על חצי-קולונים בלתי ניתנים להפסד.
TryParseSectionCondition(section: std::string_view, conditionOperator: std::string, conditionValue: double)boolמנסה להפריד תנאי (פעיל + ערך) מתוך רצועת סעיף.
TryParseConditionToken(token: std::string_view, conditionOperator: std::string, conditionValue: double)boolמנסה להפריד טוקן תנאי כגון “>=10”.
EvaluateCondition(conditionOperator: std::string_view, numericValue: double, conditionValue: double)boolהשוואה בין ערך מספר ומצב.
ShouldUseAbsoluteValue(section: std::string_view, numericValue: double)boolקובע אם הערך המוחלט של מספר שלילי צריך להיות בשימוש בעת הצורה (כלומר, הדפוס אין סימן ‘-’ מפורש).
SanitizeNumericSection(section: std::string_view)std::stringרצועות של חוטים, נחישות ציטוט, וסימני שומר מקומות מן החלק המספרי, להחזיר את השורה הנקיה (מרווחת על ידי עגול).
StripDirectiveBrackets(section: std::string_view, preserveElapsedTokens: bool)std::stringלהסיר טוקנים של הוראות מקטע אחד.
ContainsNumericPlaceholder(pattern: std::string_view)boolהחזיר את האמת אם הדפוס מכיל כל אופי של שומר מספר.
ExpandSectionPattern(pattern: std::string_view, valueText: std::string_view, replaceTextPlaceholder: bool)std::stringהרחיב דפוס סעיף על ידי החלפת שומרי טקסט ומסירת פריצות פורמט.
IsNumericValue(value: CellValue)boolהחזרה נכונה אם CellValue מחזיק סוג מספר (int או כפול).
ConvertToDouble(value: CellValue)doubleהמהפך מספר CellValue ל כפול.Throws std::invalid_argument אם הערך אינו מספר.
GetAbsoluteNumericValue(value: CellValue)CellValueהחזיר את הערך המספר המוחלט.ערכים שאינם מספריים חוזרים ללא שינוי.

ראה גם

 עברית