Aspose::Slides::IFontFallBackRule Class Referenceabstract

Represents font fallback rule More...

Inherits System::Object.

Inherited by Aspose::Slides::FontFallBackRule.

Public Member Functions

virtual uint32_t get_RangeStartIndex ()=0
 Get first index of continuous unicode range. More...
 
virtual uint32_t get_RangeEndIndex ()=0
 Get last index of continuous unicode range. More...
 
virtual int32_t get_Count ()=0
 Gets the number of fonts actually defined for range. More...
 
virtual void AddFallBackFonts (System::String fontName)=0
 Adds a new font(s) to the list of FallBack fonts.

//Create of new instance of FantFallBackRule
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho");
//Add a second font to the rule
newRule->AddFallBackFonts(u"MS Gothic");
//Add a third and fourth fonts to the rule
newRule->AddFallBackFonts(u"Tahoma, Times New Roman");
More...
 
virtual void AddFallBackFonts (System::ArrayPtr< System::String > fontNames)=0
 Adds a new fonts to the list of FallBack fonts.

//Create of new instance of FontFallBackRule
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho");
//Add of another three fonts to the rule
newRule->AddFallBackFonts(MakeArray<String>({u"MS Gothic", u"Tahoma, Times New Roman"}));
More...
 
virtual System::String idx_get (int32_t index)=0
 Gets the font name at the specified index. More...
 
virtual void Clear ()=0
 Removes all fonts from the list. More...
 
virtual void Remove (System::String fontName)=0
 Removes the first occurrence of a specific FallBack font from the list.

// Create a rule contains a list of fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma, Times New Roman");
//Removing of Tahoma from list
newRule->Remove(u"Tahoma");
More...
 
virtual void RemoveAt (int32_t index)=0
 Removes the FallBack font at the specified index of the list.

// Create a rule contains a list of fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma, Times New Roman");
//Removing of Tahoma from list
newRule->RemoveAt(2);
More...
 
virtual System::ArrayPtr< System::StringToArray ()=0
 Creates and returns an array with all FallBack fonts for this rule.

// Create a rule contains a list of fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma, Times New Roman");
//Get all font-names as array
ArrayPtr<String> fontNames = newRule->ToArray();
More...
 
virtual System::ArrayPtr< System::StringToArray (int32_t startIndex, int32_t count)=0
 Creates and returns an array with all FallBack fonts from the specified range in list.

// Create a rule contains a list of fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma, Times New Roman");
//Get a last two font-names as array
ArrayPtr<String> fontNames = newRule->ToArray(2, 2);
Parameters
startIndexAn index of a first font to add.
countA number of fonts to add.
More...
 
virtual int32_t IndexOf (System::String fontName)=0
 Returns an index of the specified rule in the collection.

// Create a rule contains a list of fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma, Times New Roman");
//Get index of Tahoma
int32_t tahomaIndex = newRule->IndexOf(u"Tahoma");
More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () ASPOSE_CONST
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 

Detailed Description

Represents font fallback rule

Member Function Documentation

◆ AddFallBackFonts() [1/2]

virtual void Aspose::Slides::IFontFallBackRule::AddFallBackFonts ( System::String  fontName)
pure virtual

Adds a new font(s) to the list of FallBack fonts.

//Create of new instance of FantFallBackRule
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho");
//Add a second font to the rule
newRule->AddFallBackFonts(u"MS Gothic");
//Add a third and fourth fonts to the rule
newRule->AddFallBackFonts(u"Tahoma, Times New Roman");

Parameters
fontNameFont's name or names (delimited by comma) for FallBack

Implemented in Aspose::Slides::FontFallBackRule.

◆ AddFallBackFonts() [2/2]

virtual void Aspose::Slides::IFontFallBackRule::AddFallBackFonts ( System::ArrayPtr< System::String fontNames)
pure virtual

Adds a new fonts to the list of FallBack fonts.

//Create of new instance of FontFallBackRule
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho");
//Add of another three fonts to the rule
newRule->AddFallBackFonts(MakeArray<String>({u"MS Gothic", u"Tahoma, Times New Roman"}));

Parameters
fontNamesFont's name or names (delimited by comma) for FallBack

Implemented in Aspose::Slides::FontFallBackRule.

◆ Clear()

virtual void Aspose::Slides::IFontFallBackRule::Clear ( )
pure virtual

Removes all fonts from the list.

Implemented in Aspose::Slides::FontFallBackRule.

◆ get_Count()

virtual int32_t Aspose::Slides::IFontFallBackRule::get_Count ( )
pure virtual

Gets the number of fonts actually defined for range.

Implemented in Aspose::Slides::FontFallBackRule.

◆ get_RangeEndIndex()

virtual uint32_t Aspose::Slides::IFontFallBackRule::get_RangeEndIndex ( )
pure virtual

Get last index of continuous unicode range.

Implemented in Aspose::Slides::FontFallBackRule.

◆ get_RangeStartIndex()

virtual uint32_t Aspose::Slides::IFontFallBackRule::get_RangeStartIndex ( )
pure virtual

Get first index of continuous unicode range.

Implemented in Aspose::Slides::FontFallBackRule.

◆ idx_get()

virtual System::String Aspose::Slides::IFontFallBackRule::idx_get ( int32_t  index)
pure virtual

Gets the font name at the specified index.

Implemented in Aspose::Slides::FontFallBackRule.

◆ IndexOf()

virtual int32_t Aspose::Slides::IFontFallBackRule::IndexOf ( System::String  fontName)
pure virtual

Returns an index of the specified rule in the collection.

// Create a rule contains a list of fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma, Times New Roman");
//Get index of Tahoma
int32_t tahomaIndex = newRule->IndexOf(u"Tahoma");

Parameters
fontNameFont's name to find.
Returns
Index of a font or -1 if font not found in list.

Implemented in Aspose::Slides::FontFallBackRule.

◆ Remove()

virtual void Aspose::Slides::IFontFallBackRule::Remove ( System::String  fontName)
pure virtual

Removes the first occurrence of a specific FallBack font from the list.

// Create a rule contains a list of fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma, Times New Roman");
//Removing of Tahoma from list
newRule->Remove(u"Tahoma");

Parameters
fontNameThe font's name to remove from the list.

Implemented in Aspose::Slides::FontFallBackRule.

◆ RemoveAt()

virtual void Aspose::Slides::IFontFallBackRule::RemoveAt ( int32_t  index)
pure virtual

Removes the FallBack font at the specified index of the list.

// Create a rule contains a list of fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma, Times New Roman");
//Removing of Tahoma from list
newRule->RemoveAt(2);

Parameters
indexThe zero-based index of the font to remove.

Implemented in Aspose::Slides::FontFallBackRule.

◆ ToArray() [1/2]

virtual System::ArrayPtr<System::String> Aspose::Slides::IFontFallBackRule::ToArray ( )
pure virtual

Creates and returns an array with all FallBack fonts for this rule.

// Create a rule contains a list of fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma, Times New Roman");
//Get all font-names as array
ArrayPtr<String> fontNames = newRule->ToArray();

Returns
Array of System::String

Implemented in Aspose::Slides::FontFallBackRule.

◆ ToArray() [2/2]

virtual System::ArrayPtr<System::String> Aspose::Slides::IFontFallBackRule::ToArray ( int32_t  startIndex,
int32_t  count 
)
pure virtual

Creates and returns an array with all FallBack fonts from the specified range in list.

// Create a rule contains a list of fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma, Times New Roman");
//Get a last two font-names as array
ArrayPtr<String> fontNames = newRule->ToArray(2, 2);
Parameters
startIndexAn index of a first font to add.
countA number of fonts to add.

Returns
Array of System::String

Implemented in Aspose::Slides::FontFallBackRule.