MathBlock
Contents
[
Hide
]MathBlock class
Specifies an instance of mathematical text that contained within a MathParagraph and starts on its own line. All math zones, including equations, expressions, arrays of equations or expressions, and formulas are represented by math block.
class MathBlock : public Aspose::Slides::MathText::MathElementBase,
public Aspose::Slides::MathText::IMathBlock
Methods
Method | Description |
---|---|
System::SharedPtr<IMathAccent> Accent(char16_t) override | Sets an accent mark (a character on the top of this element) |
void Add(System::SharedPtr<IMathElement>) override | Adds a math element to the end of the collection. |
System::SharedPtr<IMathFunction> AsArgumentOfFunction(System::SharedPtr<IMathElement>) override | Takes specified function using this instance as the argument |
System::SharedPtr<IMathFunction> AsArgumentOfFunction(System::String) override | Takes specified function using this instance as the argument |
System::SharedPtr<IMathFunction> AsArgumentOfFunction(MathFunctionsOfOneArgument) override | Takes specified function using this instance as the argument |
System::SharedPtr<IMathFunction> AsArgumentOfFunction(MathFunctionsOfTwoArguments, System::SharedPtr<IMathElement>) override | Takes specified function using this instance as the argument and specified additional argument |
System::SharedPtr<IMathFunction> AsArgumentOfFunction(MathFunctionsOfTwoArguments, System::String) override | Takes specified function using this instance as the argument and specified additional argument |
iterator begin() | Gets iterator pointing to the first element (if any) of the collection. This iterator can’t be used to change a referenced object because GetEnumerator() returns a copy-object of T. |
const_iterator begin() const | Gets iterator pointing to the first element (if any) of the const-qualified instance of the collection. |
const_iterator cbegin() const | Gets iterator pointing to the first const-qualified element (if any) of the collection. |
const_iterator cend() const | Gets iterator pointing right after the last const-qualified element (if any) of the collection. |
void Clear() override | Removes all elements from the collection. |
bool Contains(System::SharedPtr<IMathElement>) override | Determines whether the collection contains a specific value. |
void CopyTo(System::ArrayPtr<System::SharedPtr<IMathElement>>, int32_t) override | Copy to specified array. |
System::SharedPtr<IMathDelimiter> Delimit(char16_t) override | Delimits child elements with separator character (without the brackets) |
System::SharedPtr<IMathFraction> Divide(System::SharedPtr<IMathElement>) override | Creates a fraction with this numerator and specified denominator |
System::SharedPtr<IMathFraction> Divide(System::String) override | Creates a fraction with this numerator and specified denominator |
System::SharedPtr<IMathFraction> Divide(System::SharedPtr<IMathElement>, MathFractionTypes) override | Creates a fraction of the specified type with this numerator and specified denominator |
System::SharedPtr<IMathFraction> Divide(System::String, MathFractionTypes) override | Creates a fraction of the specified type with this numerator and specified denominator |
System::SharedPtr<IMathDelimiter> Enclose(char16_t, char16_t) override | Encloses child elements of this block in specified characters such as parenthesis or another characters as framing |
System::SharedPtr<IMathDelimiter> Enclose(char16_t, char16_t, char16_t) override | Encloses child elements of this block in specified characters such as parenthesis or another as framing and delimit with a separator character |
System::SharedPtr<IMathDelimiter> Enclose() override | Encloses a math element in parenthesis |
iterator end() | Gets iterator pointing right after the last element (if any) of the collection. This iterator can’t be used to change a referenced object because GetEnumerator() returns a copy-object of T. |
const_iterator end() const | Gets iterator pointing right after the last element (if any) of the const-qualified instance of the collection. |
virtual bool Equals(ptr) | Compares objects using C# Object.Equals semantics. |
static std::enable_if<IsSmartPtr<T1>::value&&IsSmartPtr<T2>::value, bool>::type Equals(T1 const&, T2 const&) | Compares reference type objects in C# style. |
static std::enable_if<!IsSmartPtr<T1>::value&&!IsSmartPtr<T2>::value, bool>::type Equals(T1 const&, T2 const&) | Compares value type objects in C# style. |
static bool Equals(float const&, float const&) | Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. |
static bool Equals(double const&, double const&) | Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. |
virtual bool FastCast(const Details::FastRttiBase&, void **) const | For internal purposes only. |
System::SharedPtr<IMathFunction> Function(System::SharedPtr<IMathElement>) override | Takes a function of an argument using this instance as the function name |
System::SharedPtr<IMathFunction> Function(System::String) override | Takes a function of an argument using this instance as the function name |
int32_t get_Count() override | Gets the number of child math elements actually contained in the collection. Read-only int32_t. |
bool get_IsReadOnly() | Returns false because child elements collection can be modified. |
System::ArrayPtr<System::SharedPtr<IMathElement>> GetChildren() override | Get children elements |
Detail::SmartPtrCounter * GetCounter() | Gets reference counter data structure associated with the object. |
virtual int32_t GetHashCode() const | Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. |
virtual const TypeInfo& GetType() const | Gets actual type of object. Analog of C# System.Object.GetType() call. |
System::SharedPtr<IMathGroupingCharacter> Group() override | Places this element in a group using a bottom curly bracket |
System::SharedPtr<IMathGroupingCharacter> Group(char16_t, MathTopBotPositions, MathTopBotPositions) override | Places this element in a group using a grouping character such as bottom curly bracket or another |
System::SharedPtr<IMathElement> idx_get(int32_t) override | Gets IMathElement at the specified index. |
void idx_set(int32_t, System::SharedPtr<IMathElement>) | Sets IMathElement at the specified index. |
int32_t IndexOf(System::SharedPtr<IMathElement>) override | Determines the index of a specific math element in collection. |
void Insert(int32_t, System::SharedPtr<IMathElement>) override | Inserts a MathElement into the collection at the specified index. |
System::SharedPtr<IMathNaryOperator> Integral(MathIntegralTypes, System::SharedPtr<IMathElement>, System::SharedPtr<IMathElement>, MathLimitLocations) override | Takes the integral |
System::SharedPtr<IMathNaryOperator> Integral(MathIntegralTypes, System::SharedPtr<IMathElement>, System::SharedPtr<IMathElement>) override | Takes the integral |
System::SharedPtr<IMathNaryOperator> Integral(MathIntegralTypes) override | Takes the integral without limits |
System::SharedPtr<IMathNaryOperator> Integral(MathIntegralTypes, System::String, System::String, MathLimitLocations) override | Takes the integral |
System::SharedPtr<IMathNaryOperator> Integral(MathIntegralTypes, System::String, System::String) override | Takes the integral |
virtual bool Is(const TypeInfo&) const | Check if object represents an instance of type described by targetType. Analog of C# ‘is’ operator. |
System::SharedPtr<IMathBlock> Join(System::SharedPtr<IMathElement>) override | Joins a mathematical element with this mathematical block |
System::SharedPtr<IMathBlock> Join(System::String) override | Joins a mathematical text with this mathematical block |
System::SharedPtr<IMathBlock> JoinBlock(System::SharedPtr<IMathBlock>) override | Joins another mathematical block with this one |
T LINQ_Aggregate(const Func<T, T, T>&) | Applies an accumulator function over a sequence. |
bool LINQ_All(std::function<bool(T)>) | Determines whether all elements of a sequence satisfy a condition. |
bool LINQ_Any() | Determines whether a sequence contains any elements. |
bool LINQ_Any(std::function<bool(T)>) | Determines whether any element of a sequence exists or satisfies a condition. |
SharedPtr<IEnumerable<ResultType>> LINQ_Cast() | Casts the elements to the specified type. |
SharedPtr<IEnumerable<Result>> LINQ_Cast() | |
SharedPtr<IEnumerable<T>> LINQ_Concat(SharedPtr<IEnumerable<T>>) | Concatenates two sequences. |
bool LINQ_Contains(T) | Determines if a sequence contains a specified value. |
int LINQ_Count() | Returns the number of elements in the sequence (calculated via direct counting). |
int LINQ_Count(const Func<T, bool>&) | Returns the number of elements in the sequence that satisfy the specified condition. |
T LINQ_ElementAt(int) | Returns the element at a specified index in a sequence. |
T LINQ_ElementAtOrDefault(int) | Returns the element at a specified index in a sequence. |
T LINQ_First() | Returns the first element of a sequence. |
T LINQ_First(const Func<T, bool>&) | Returns the first element of a sequence that satisfy the specified condition. |
T LINQ_FirstOrDefault() | Returns the first element of a sequence, or a default value if the sequence is empty. |
T LINQ_FirstOrDefault(std::function<bool(T)>) | Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. |
System::SharedPtr<IEnumerable<System::SharedPtr<System::Linq::IGrouping<Key, T>>>> LINQ_GroupBy(System::Func<T, Key>) | Groups the elements of a sequence. |
SharedPtr<IEnumerable<SharedPtr<System::Linq::IGrouping<Key, Source>>>> LINQ_GroupBy(System::Func<Source, Key>) | |
T LINQ_Last() | Returns the last element of a sequence. |
T LINQ_LastOrDefault() | Returns the last element of a sequence, or a default value if the sequence is empty. |
ResultType LINQ_Max(const Func<T, ResultType>&) | Invokes a transform function on each element of a generic sequence and returns the maximum resulting value. |
ResultType LINQ_Max(const Func<Source, ResultType>&) | |
ResultType LINQ_Min(const Func<T, ResultType>&) | Invokes a transform function on each element of a generic sequence and returns the minimum resulting value. |
ResultType LINQ_Min(const Func<Source, ResultType>&) | |
SharedPtr<IEnumerable<ResultType>> LINQ_OfType() | Filters the elements of the sequence based on the specified type. |
SharedPtr<IEnumerable<Result>> LINQ_OfType() | |
SharedPtr<Linq::IOrderedEnumerable<T>> LINQ_OrderBy(const Func<T, Key>&) | Sorts the elements of a sequence in ascending order according to the key values selected by keySelector. |
SharedPtr<Linq::IOrderedEnumerable<Source>> LINQ_OrderBy(const Func<Source, Key>&) | |
SharedPtr<Linq::IOrderedEnumerable<T>> LINQ_OrderByDescending(const Func<T, Key>&) | Sorts the elements of a sequence in descending order according to the key values selected by keySelector. |
SharedPtr<Linq::IOrderedEnumerable<Source>> LINQ_OrderByDescending(const Func<Source, Key>&) | |
SharedPtr<IEnumerable<T>> LINQ_Reverse() | Inverts the order of the elements in a sequence. |
SharedPtr<IEnumerable<ResultType>> LINQ_Select(const Func<T, ResultType>&) | Transforms elements of a sequence. |
SharedPtr<IEnumerable<ResultType>> LINQ_Select(const Func<T, int32_t, ResultType>&) | Transforms each element of a sequence into a new form by incorporating the element’s index. |
SharedPtr<IEnumerable<Result>> LINQ_Select(const Func<Source, Result>&) | |
SharedPtr<IEnumerable<Result>> LINQ_Select(const Func<Source, int32_t, Result>&) | |
SharedPtr<IEnumerable<ResultType>> LINQ_SelectMany(const Func<T, SharedPtr<IEnumerable<ResultType>>>&) | Projects each element of a sequence and combines the resulting sequences into one sequence. |
SharedPtr<IEnumerable<Result>> LINQ_SelectMany(const Func<Source, SharedPtr<IEnumerable<Result>>>&) | |
SharedPtr<IEnumerable<T>> LINQ_Take(int32_t) | Returns a specified number of contiguous elements from the start of a sequence. |
System::ArrayPtr<T> LINQ_ToArray() | Creates an array from a sequence. |
SharedPtr<List<T>> LINQ_ToList() | Creates a List |
SharedPtr<IEnumerable<T>> LINQ_Where(std::function<bool(T)>) | Filters a sequence based on the specified predicate. |
void Lock() | Implements C# lock() statement locking. Call directly or use LockContext sentry object. |
MathBlock() | Initializes a new instance of the MathBlock class. |
MathBlock(System::SharedPtr<IMathElement>) | Creates a new mathematical block and puts specified element in it |
MathBlock(System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<IMathElement>>>) | Creates a new mathematical block and puts specified elements in it |
virtual ptr MemberwiseClone() const | Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. |
System::SharedPtr<IMathNaryOperator> Nary(MathNaryOperatorTypes, System::SharedPtr<IMathElement>, System::SharedPtr<IMathElement>) override | Creates a N-ary operator |
System::SharedPtr<IMathNaryOperator> Nary(MathNaryOperatorTypes, System::String, System::String) override | Creates a N-ary operator |
Object() | Creates object. Initializes all internal data structures. |
Object(Object const&) | Copy constructor. Doesn’t copy anything, really, just initializes new object and enables copy constructing subclasses. |
Object& operator=(Object const&) | Assignment operator. Doesn’t copy anything, really, just initializes new object and enables copy constructing subclasses. |
System::SharedPtr<IMathBar> Overbar() override | Sets a bar on the top of this element |
System::SharedPtr<IMathRadical> Radical(System::SharedPtr<IMathElement>) override | Specifies the mathematical root of the given degree from the specified argument. |
System::SharedPtr<IMathRadical> Radical(System::String) override | Specifies the mathematical root of the given degree from the specified argument. |
static bool ReferenceEquals(ptr const&, ptr const&) | Compares objects by reference. |
static std::enable_if<!IsSmartPtr<T>::value, bool>::type ReferenceEquals(T const&, T const&) | Compares objects by reference. |
static std::enable_if<!IsSmartPtr<T>::value, bool>::type ReferenceEquals(T const&, std::nullptr_t) | Reference-compares value type object with nullptr. |
bool ReferenceEquals(String const&, std::nullptr_t) | Specialization of Object::ReferenceEquals for case of string and nullptr. |
bool ReferenceEquals(String const&, String const&) | Specialization of Object::ReferenceEquals for case of strings. |
bool Remove(System::SharedPtr<IMathElement>) override | Removes the first occurrence of a specific object from the collection. |
void RemoveAt(int32_t) override | Removes the element at the specified index of the collection. |
int RemovedSharedRefs(int) | Decreases shared reference count by specified value. |
System::SharedPtr<IMathLimit> SetLowerLimit(System::SharedPtr<IMathElement>) override | Takes lower limit |
System::SharedPtr<IMathLimit> SetLowerLimit(System::String) override | Takes lower limit |
System::SharedPtr<IMathSubscriptElement> SetSubscript(System::SharedPtr<IMathElement>) override | Creates subscript |
System::SharedPtr<IMathSubscriptElement> SetSubscript(System::String) override | Creates subscript |
System::SharedPtr<IMathLeftSubSuperscriptElement> SetSubSuperscriptOnTheLeft(System::SharedPtr<IMathElement>, System::SharedPtr<IMathElement>) override | Creates subscript and superscript on the left |
System::SharedPtr<IMathLeftSubSuperscriptElement> SetSubSuperscriptOnTheLeft(System::String, System::String) override | Creates subscript and superscript on the left |
System::SharedPtr<IMathRightSubSuperscriptElement> SetSubSuperscriptOnTheRight(System::SharedPtr<IMathElement>, System::SharedPtr<IMathElement>) override | Creates subscript and superscript on the right |
System::SharedPtr<IMathRightSubSuperscriptElement> SetSubSuperscriptOnTheRight(System::String, System::String) override | Creates subscript and superscript on the right |
System::SharedPtr<IMathSuperscriptElement> SetSuperscript(System::SharedPtr<IMathElement>) override | Creates superscript |
System::SharedPtr<IMathSuperscriptElement> SetSuperscript(System::String) override | Creates superscript |
virtual void SetTemplateWeakPtr(uint32_t) | Set n’th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. |
System::SharedPtr<IMathLimit> SetUpperLimit(System::SharedPtr<IMathElement>) override | Takes upper limit |
System::SharedPtr<IMathLimit> SetUpperLimit(System::String) override | Takes upper limit |
int SharedCount() const | Gets current value of shared reference counter. |
Object * SharedRefAdded() | Increments shared reference count. Shouldn’t be called directly; instead, use smart pointers or ThisProtector. |
int SharedRefRemovedSafe() | Decrements and returns shared reference count. Shouldn’t be called directly; instead, use smart pointers or ThisProtector. |
System::SharedPtr<IMathBorderBox> ToBorderBox() override | Places this element in a border-box |
System::SharedPtr<IMathBorderBox> ToBorderBox(bool, bool, bool, bool, bool, bool, bool, bool) override | Places this element in a border-box |
System::SharedPtr<IMathBox> ToBox() override | Places this element in a non-visual box (logical grouping) which is used to group components of an equation or other instance of mathematical text. A boxed object can (for example) serve as an operator emulator with or without an alignment point, serve as a line break point, or be grouped such as not to allow line breaks within. |
System::SharedPtr<IMathArray> ToMathArray() override | Puts child elements in a vertical array |
virtual String ToString() const | Analog of C# Object.ToString() method. Enables converting custom objects to string. |
static const TypeInfo& Type() | Implements C# typeof(System.Object) construct. |
System::SharedPtr<IMathBar> Underbar() override | Sets a bar on the bottom of this element |
void Unlock() | Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. |
virtual virtualized_iterator * virtualizeBeginConstIterator() const | Gets the implementation of begin const iterator for the current container. |
virtual virtualized_iterator * virtualizeBeginIterator() | Gets the implementation of begin iterator for the current container. |
virtual virtualized_iterator * virtualizeEndConstIterator() const | Gets the implementation of end const iterator for the current container. |
virtual virtualized_iterator * virtualizeEndIterator() | Gets the implementation of end iterator for the current container. |
Detail::SmartPtrCounter * WeakRefAdded() | Increments weak reference count. Shouldn’t be called directly; instead, use smart pointers or ThisProtector. |
void WeakRefRemoved() | Decrements weak reference count. Shouldn’t be called directly; instead, use smart pointers or ThisProtector. |
void WriteAsMathMl(System::SharedPtr<System::IO::Stream>) override | Saves content of this MathBlock as MathML |
virtual ~Object() | Destroys object. Frees all internal data structures. |
Remarks
Example:
auto mathBlock = System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"x"));
auto plusElement = System::MakeObject<MathematicalText>(u"+");
mathBlock->Add(plusElement);
mathBlock->Add(System::MakeObject<MathRadical>(System::MakeObject<MathematicalText>(u"x"), System::MakeObject<MathematicalText>(u"3")));
See Also
- Class MathElementBase
- Class IMathBlock
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides