Aspose::Slides::IBulletFormatEffectiveData Class Referenceabstract

Immutable object which contains effective paragraph bullet formatting properties. More...

Inherits System::Object.

Public Member Functions

virtual BulletType get_Type ()=0
 Returns the bullet type of a paragraph. Read-only BulletType. More...
 
virtual char16_t get_Char ()=0
 Returns the bullet char of a paragraph. Read-only wchar_t. More...
 
virtual System::String get_ActualBulletValue ()=0
 Returns actual bullet value for parent paragraph. Read-only System::String. More...
 
virtual System::SharedPtr< IFontDataget_Font ()=0
 Returns the bullet font of a paragraph. Read-only IFontData. More...
 
virtual float get_Height ()=0
 Returns the bullet height of a paragraph. Read-only float. More...
 
virtual int16_t get_NumberedBulletStartWith ()=0
 Returns the first number which is used for group of numbered bullets. Read-only int16_t. More...
 
virtual Aspose::Slides::NumberedBulletStyle get_NumberedBulletStyle ()=0
 Returns the style of a numbered bullet. Read-only Slides::NumberedBulletStyle. More...
 
virtual System::Drawing::Color get_Color ()=0
 Returns the color of a bullet. Read-only System::Drawing::Color. More...
 
virtual bool get_IsBulletHardColor ()=0
 Determines whether the bullet has own color or inherits it from the first portion in the paragraph. Returns true if bullet has own color and false if bullet inherits color from the first portion in the paragraph. Read-only bool. More...
 
virtual bool get_IsBulletHardFont ()=0
 Determines whether the bullet has own font or inherits it from the first portion in the paragraph. Returns true if bullet has own font and true if bullet inherits font from the first portion in the paragraph. Read-only bool. More...
 
virtual System::SharedPtr< IPictureEffectiveDataget_Picture ()=0
 Returns the picture used as a bullet in the paragraph. Read-only IPictureEffectiveData. More...
 
virtual System::SharedPtr< IFillFormatEffectiveDataget_FillFormat ()=0
 Returns the bullet fill format of a paragraph. Read-only IFillFormatEffectiveData. 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 int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () 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

Immutable object which contains effective paragraph bullet formatting properties.

This interface is used as a part of IParagraphFormatEffectiveData.

Member Function Documentation

◆ get_ActualBulletValue()

virtual System::String Aspose::Slides::IBulletFormatEffectiveData::get_ActualBulletValue ( )
pure virtual

Returns actual bullet value for parent paragraph. Read-only System::String.

◆ get_Char()

virtual char16_t Aspose::Slides::IBulletFormatEffectiveData::get_Char ( )
pure virtual

Returns the bullet char of a paragraph. Read-only wchar_t.

◆ get_Color()

virtual System::Drawing::Color Aspose::Slides::IBulletFormatEffectiveData::get_Color ( )
pure virtual

Returns the color of a bullet. Read-only System::Drawing::Color.

Deprecated:
Use IBulletFormatEffectiveData.FillFormat.SolidFillColor instead. The property will be removed after release of version 21.9.

◆ get_FillFormat()

virtual System::SharedPtr<IFillFormatEffectiveData> Aspose::Slides::IBulletFormatEffectiveData::get_FillFormat ( )
pure virtual

Returns the bullet fill format of a paragraph. Read-only IFillFormatEffectiveData.

This example demonstrates retrieving bullet's fill effective data.

using namespace System;
using namespace Aspose::Slides;
auto pres = MakeObject<Presentation>(u"SomePresentation.pptx");
// Assume that the first shape on the first slide is AutoShape with some text...
// Output information about text paragraphs' bullets
auto autoShape = DynamicCast<Aspose::Slides::AutoShape>(pres->get_Slides()->idx_get(0)->get_Shapes()->idx_get(0));
for (auto para : IterateOver(autoShape->get_TextFrame()->get_Paragraphs()))
{
auto bulletFormatEffective = para->get_ParagraphFormat()->get_Bullet()->GetEffective();
Console::WriteLine(String(u"Bullet type: ") + ObjectExt::ToString(bulletFormatEffective->get_Type()));
if (bulletFormatEffective->get_Type() != Aspose::Slides::BulletType::None)
{
Console::WriteLine(String(u"Bullet fill type: ") + ObjectExt::ToString(bulletFormatEffective->get_FillFormat()->get_FillType()));
switch (bulletFormatEffective->get_FillFormat()->get_FillType())
{
Console::WriteLine(String(u"Solid fill color: ") + bulletFormatEffective->get_FillFormat()->get_SolidFillColor());
break;
{
Console::WriteLine(String(u"Gradient stops count: ") + bulletFormatEffective->get_FillFormat()->get_GradientFormat()->get_GradientStops()->get_Count());
for (auto gradStop : IterateOver(bulletFormatEffective->get_FillFormat()->get_GradientFormat()->get_GradientStops()))
{
Console::WriteLine(Convert::ToString(gradStop->get_Position()) + u": " + gradStop->get_Color());
}
break;
}
Console::WriteLine(String(u"Pattern style: ") + ObjectExt::ToString(bulletFormatEffective->get_FillFormat()->get_PatternFormat()->get_PatternStyle()));
Console::WriteLine(String(u"Fore color: ") + bulletFormatEffective->get_FillFormat()->get_PatternFormat()->get_ForeColor());
Console::WriteLine(String(u"Back color: ") + bulletFormatEffective->get_FillFormat()->get_PatternFormat()->get_BackColor());
break;
default:
break;
}
}
Console::WriteLine();
}

◆ get_Font()

virtual System::SharedPtr<IFontData> Aspose::Slides::IBulletFormatEffectiveData::get_Font ( )
pure virtual

Returns the bullet font of a paragraph. Read-only IFontData.

◆ get_Height()

virtual float Aspose::Slides::IBulletFormatEffectiveData::get_Height ( )
pure virtual

Returns the bullet height of a paragraph. Read-only float.

◆ get_IsBulletHardColor()

virtual bool Aspose::Slides::IBulletFormatEffectiveData::get_IsBulletHardColor ( )
pure virtual

Determines whether the bullet has own color or inherits it from the first portion in the paragraph. Returns true if bullet has own color and false if bullet inherits color from the first portion in the paragraph. Read-only bool.

◆ get_IsBulletHardFont()

virtual bool Aspose::Slides::IBulletFormatEffectiveData::get_IsBulletHardFont ( )
pure virtual

Determines whether the bullet has own font or inherits it from the first portion in the paragraph. Returns true if bullet has own font and true if bullet inherits font from the first portion in the paragraph. Read-only bool.

◆ get_NumberedBulletStartWith()

virtual int16_t Aspose::Slides::IBulletFormatEffectiveData::get_NumberedBulletStartWith ( )
pure virtual

Returns the first number which is used for group of numbered bullets. Read-only int16_t.

◆ get_NumberedBulletStyle()

virtual Aspose::Slides::NumberedBulletStyle Aspose::Slides::IBulletFormatEffectiveData::get_NumberedBulletStyle ( )
pure virtual

Returns the style of a numbered bullet. Read-only Slides::NumberedBulletStyle.

◆ get_Picture()

virtual System::SharedPtr<IPictureEffectiveData> Aspose::Slides::IBulletFormatEffectiveData::get_Picture ( )
pure virtual

Returns the picture used as a bullet in the paragraph. Read-only IPictureEffectiveData.

Deprecated:
Use IBulletFormatEffectiveData.FillFormat.PictureFillFormat instead. The property will be removed after release of version 21.9.

◆ get_Type()

virtual BulletType Aspose::Slides::IBulletFormatEffectiveData::get_Type ( )
pure virtual

Returns the bullet type of a paragraph. Read-only BulletType.