Aspose::Slides::FontFallBackRule Class Reference

Represents font fallback rule More...

Inherits Aspose::Slides::IFontFallBackRule.

Public Member Functions

uint32_t get_RangeStartIndex ()
 Get first index of continuous unicode range. More...
 
void set_RangeStartIndex (uint32_t value)
 Get first index of continuous unicode range. More...
 
uint32_t get_RangeEndIndex ()
 Get last index of continuous unicode range. More...
 
void set_RangeEndIndex (uint32_t value)
 Get last index of continuous unicode range. More...
 
int32_t get_Count ()
 Gets the number of fonts actually defined for range. Read-only int32_t. More...
 
 FontFallBackRule (uint32_t startIndex, uint32_t endIndex, System::String fontNames)
 Creates new instance.

// Create new instance of FantFallBackRule with one font.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho");
// Create new instance of FantFallBackRule with several fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma");
More...
 
 FontFallBackRule (uint32_t startIndex, uint32_t endIndex, System::ArrayPtr< System::String > fontNames)
 Creates new instance.

// Create new instance of FantFallBackRule with two fonts
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, MakeArray<String>({u"MS Mincho", u"MS Gothic"}));
// Create new instance of FantFallBackRule with several fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, MakeArray<String>({u"MS Gothic", u"Tahoma, Times New Roman"}));
More...
 
void AddFallBackFonts (System::String fontName)
 Adds a new font(s) to the list of FallBack fonts.

// Create new instance of FontFallBackRule
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...
 
void AddFallBackFonts (System::ArrayPtr< System::String > fontNames)
 Adds a new fonts to the list of FallBack fonts.

//Create 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...
 
System::String idx_get (int32_t index)
 Gets the font name at the specified index. Read-only IFontFallBackRule. More...
 
void Clear ()
 Removes all fonts from the list. More...
 
void Remove (System::String fontName)
 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");
// Remove Tahoma from the list.
newRule->Remove(u"Tahoma");
More...
 
void RemoveAt (int32_t index)
 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 Tahoma from the list.
newRule->RemoveAt(2);
More...
 
System::ArrayPtr< System::StringToArray ()
 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...
 
System::ArrayPtr< System::StringToArray (int32_t startIndex, int32_t count)
 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...
 
int32_t IndexOf (System::String fontName)
 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)
 

Protected Member Functions

System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< FallBackFontContext > > > get_FontContextsList ()
 
uint32_t get_IndexationVersion () const
 
void set_IndexationVersion (uint32_t value)
 
 FontFallBackRule (uint32_t startIndex, uint32_t endIndex)
 Creates new instance. More...
 
 FontFallBackRule (uint32_t startIndex, uint32_t endIndex, System::SharedPtr< FontFallBackRule > sourceFallBackRule)
 
void AddFallBackFontContext (System::SharedPtr< FallBackFontContext > sourceFallBackFontContext)
 
void AddFallBackFontContext (System::SharedPtr< FallBackFontContext > sourceFallBackFontContext, bool checkFontUniquness)
 
void UpdateFontsFromExisting (System::SharedPtr< FontFallBackRule > sourceFallBackRule, bool checkFontUniquness)
 
void SetParentCollection (System::SharedPtr< FontFallBackRulesCollection > parentCollection)
 
void DropParentCollection (System::SharedPtr< FontFallBackRulesCollection > parentCollection)
 
void DropRelations ()
 
void DropFontsRegistration ()
 

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

Constructor & Destructor Documentation

◆ FontFallBackRule() [1/4]

Aspose::Slides::FontFallBackRule::FontFallBackRule ( uint32_t  startIndex,
uint32_t  endIndex,
System::String  fontNames 
)

Creates new instance.

// Create new instance of FantFallBackRule with one font.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho");
// Create new instance of FantFallBackRule with several fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho, MS Gothic, Tahoma");

Parameters
startIndexStart index of unicode range
endIndexEnd index of unicode range
fontNamesFont's name or names (delimited by comma) for FallBack

◆ FontFallBackRule() [2/4]

Aspose::Slides::FontFallBackRule::FontFallBackRule ( uint32_t  startIndex,
uint32_t  endIndex,
System::ArrayPtr< System::String fontNames 
)

Creates new instance.

// Create new instance of FantFallBackRule with two fonts
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, MakeArray<String>({u"MS Mincho", u"MS Gothic"}));
// Create new instance of FantFallBackRule with several fonts.
auto newRule = MakeObject<FontFallBackRule>(0x3040, 0x309F, MakeArray<String>({u"MS Gothic", u"Tahoma, Times New Roman"}));

Parameters
startIndexStart index of unicode range
endIndexEnd index of unicode range
fontNamesFont's name or names (delimited by comma) for FallBack

◆ FontFallBackRule() [3/4]

Aspose::Slides::FontFallBackRule::FontFallBackRule ( uint32_t  startIndex,
uint32_t  endIndex 
)
protected

Creates new instance.

Parameters
startIndexStart index of unicode range
endIndexEnd index of unicode range

◆ FontFallBackRule() [4/4]

Aspose::Slides::FontFallBackRule::FontFallBackRule ( uint32_t  startIndex,
uint32_t  endIndex,
System::SharedPtr< FontFallBackRule sourceFallBackRule 
)
protected

Member Function Documentation

◆ AddFallBackFontContext() [1/2]

void Aspose::Slides::FontFallBackRule::AddFallBackFontContext ( System::SharedPtr< FallBackFontContext >  sourceFallBackFontContext)
protected

◆ AddFallBackFontContext() [2/2]

void Aspose::Slides::FontFallBackRule::AddFallBackFontContext ( System::SharedPtr< FallBackFontContext >  sourceFallBackFontContext,
bool  checkFontUniquness 
)
protected

◆ AddFallBackFonts() [1/2]

void Aspose::Slides::FontFallBackRule::AddFallBackFonts ( System::String  fontName)
virtual

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

// Create new instance of FontFallBackRule
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

Implements Aspose::Slides::IFontFallBackRule.

◆ AddFallBackFonts() [2/2]

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

Adds a new fonts to the list of FallBack fonts.

//Create 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

Implements Aspose::Slides::IFontFallBackRule.

◆ Clear()

void Aspose::Slides::FontFallBackRule::Clear ( )
virtual

Removes all fonts from the list.

Implements Aspose::Slides::IFontFallBackRule.

◆ DropFontsRegistration()

void Aspose::Slides::FontFallBackRule::DropFontsRegistration ( )
protected

◆ DropParentCollection()

void Aspose::Slides::FontFallBackRule::DropParentCollection ( System::SharedPtr< FontFallBackRulesCollection parentCollection)
protected

◆ DropRelations()

void Aspose::Slides::FontFallBackRule::DropRelations ( )
protected

◆ get_Count()

int32_t Aspose::Slides::FontFallBackRule::get_Count ( )
virtual

Gets the number of fonts actually defined for range. Read-only int32_t.

Implements Aspose::Slides::IFontFallBackRule.

◆ get_FontContextsList()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<FallBackFontContext> > > Aspose::Slides::FontFallBackRule::get_FontContextsList ( )
protected

◆ get_IndexationVersion()

uint32_t Aspose::Slides::FontFallBackRule::get_IndexationVersion ( ) const
protected

◆ get_RangeEndIndex()

uint32_t Aspose::Slides::FontFallBackRule::get_RangeEndIndex ( )
virtual

Get last index of continuous unicode range.

Implements Aspose::Slides::IFontFallBackRule.

◆ get_RangeStartIndex()

uint32_t Aspose::Slides::FontFallBackRule::get_RangeStartIndex ( )
virtual

Get first index of continuous unicode range.

Implements Aspose::Slides::IFontFallBackRule.

◆ idx_get()

System::String Aspose::Slides::FontFallBackRule::idx_get ( int32_t  index)
virtual

Gets the font name at the specified index. Read-only IFontFallBackRule.

Implements Aspose::Slides::IFontFallBackRule.

◆ IndexOf()

int32_t Aspose::Slides::FontFallBackRule::IndexOf ( System::String  fontName)
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.

Implements Aspose::Slides::IFontFallBackRule.

◆ Remove()

void Aspose::Slides::FontFallBackRule::Remove ( System::String  fontName)
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");
// Remove Tahoma from the list.
newRule->Remove(u"Tahoma");

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

Implements Aspose::Slides::IFontFallBackRule.

◆ RemoveAt()

void Aspose::Slides::FontFallBackRule::RemoveAt ( int32_t  index)
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 Tahoma from the list.
newRule->RemoveAt(2);

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

Implements Aspose::Slides::IFontFallBackRule.

◆ set_IndexationVersion()

void Aspose::Slides::FontFallBackRule::set_IndexationVersion ( uint32_t  value)
protected

◆ set_RangeEndIndex()

void Aspose::Slides::FontFallBackRule::set_RangeEndIndex ( uint32_t  value)

Get last index of continuous unicode range.

◆ set_RangeStartIndex()

void Aspose::Slides::FontFallBackRule::set_RangeStartIndex ( uint32_t  value)

Get first index of continuous unicode range.

◆ SetParentCollection()

void Aspose::Slides::FontFallBackRule::SetParentCollection ( System::SharedPtr< FontFallBackRulesCollection parentCollection)
protected

◆ ToArray() [1/2]

System::ArrayPtr<System::String> Aspose::Slides::FontFallBackRule::ToArray ( )
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

Implements Aspose::Slides::IFontFallBackRule.

◆ ToArray() [2/2]

System::ArrayPtr<System::String> Aspose::Slides::FontFallBackRule::ToArray ( int32_t  startIndex,
int32_t  count 
)
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

Implements Aspose::Slides::IFontFallBackRule.

◆ UpdateFontsFromExisting()

void Aspose::Slides::FontFallBackRule::UpdateFontsFromExisting ( System::SharedPtr< FontFallBackRule sourceFallBackRule,
bool  checkFontUniquness 
)
protected