Aspose::Slides::Comment Class Referencefinal

Represents a comment on a slide. More...

Inherits Aspose::Slides::IComment, and Aspose::Slides::IDOMObject.

Public Member Functions

System::String get_Text ()
 Returns the plain text of a slide comment. Read System::String. More...
 
void set_Text (System::String value)
 Sets the plain text of a slide comment. Write System::String. More...
 
System::DateTime get_CreatedTime ()
 Returns the time of a comment creation. Setting this property to DateTime::MinValue means no comment time is set. Read DateTime. More...
 
void set_CreatedTime (System::DateTime value)
 Sets the time of a comment creation. Setting this property to DateTime::MinValue means no comment time is set. Write DateTime. More...
 
System::SharedPtr< ISlideget_Slide ()
 Returns the parent slide of a comment. Read-only ISlide. More...
 
System::SharedPtr< ICommentAuthorget_Author ()
 Returns the author of a comment. Read-only ICommentAuthor. More...
 
System::Drawing::PointF get_Position ()
 Returns the position of a comment on a slide. Read PointF. More...
 
void set_Position (System::Drawing::PointF value)
 Sets the position of a comment on a slide. Write PointF. More...
 
System::SharedPtr< ICommentget_ParentComment ()
 Gets parent comment. Read IComment. More...
 
void set_ParentComment (System::SharedPtr< IComment > value)
 Sets parent comment. Write IComment. More...
 
System::SharedPtr< IDOMObjectget_Parent_Immediate ()
 Returns Parent_Immediate object. Read-only IDOMObject. More...
 
void Remove ()
 Removes comment and all its replies from the parent collection. 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

int32_t get_TimeZoneBias () const
 Gets time zone bias, in minutes. Read int32_t. More...
 
void set_TimeZoneBias (int32_t value)
 Sets time zone bias, in minutes. Write int32_t. More...
 
System::SharedPtr< UnsupportedProps::PPTXUnsupportedProps::CommentPPTXUnsupportedProps > get_PPTXUnsupportedProps ()
 
 Comment (System::SharedPtr< CommentCollection > parentImmediate, System::SharedPtr< CommentAuthor > author, System::String text, System::SharedPtr< Aspose::Slides::Slide > slide, System::Drawing::PointF position, System::DateTime dateTime)
 

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 a comment on a slide.

Constructor & Destructor Documentation

◆ Comment()

Aspose::Slides::Comment::Comment ( System::SharedPtr< CommentCollection parentImmediate,
System::SharedPtr< CommentAuthor author,
System::String  text,
System::SharedPtr< Aspose::Slides::Slide slide,
System::Drawing::PointF  position,
System::DateTime  dateTime 
)
protected

Member Function Documentation

◆ get_Author()

System::SharedPtr<ICommentAuthor> Aspose::Slides::Comment::get_Author ( )
virtual

Returns the author of a comment. Read-only ICommentAuthor.

Implements Aspose::Slides::IComment.

◆ get_CreatedTime()

System::DateTime Aspose::Slides::Comment::get_CreatedTime ( )
virtual

Returns the time of a comment creation. Setting this property to DateTime::MinValue means no comment time is set. Read DateTime.

Comment time is an optional parameter.

Implements Aspose::Slides::IComment.

◆ get_Parent_Immediate()

System::SharedPtr<IDOMObject> Aspose::Slides::Comment::get_Parent_Immediate ( )
virtual

Returns Parent_Immediate object. Read-only IDOMObject.

Implements Aspose::Slides::IDOMObject.

◆ get_ParentComment()

System::SharedPtr<IComment> Aspose::Slides::Comment::get_ParentComment ( )
virtual

Gets parent comment. Read IComment.

Exceptions
PptxEditExceptionThrown when setting the value leads to a circular reference

Implements Aspose::Slides::IComment.

◆ get_Position()

System::Drawing::PointF Aspose::Slides::Comment::get_Position ( )
virtual

Returns the position of a comment on a slide. Read PointF.

Implements Aspose::Slides::IComment.

◆ get_PPTXUnsupportedProps()

System::SharedPtr<UnsupportedProps::PPTXUnsupportedProps::CommentPPTXUnsupportedProps> Aspose::Slides::Comment::get_PPTXUnsupportedProps ( )
protected

◆ get_Slide()

System::SharedPtr<ISlide> Aspose::Slides::Comment::get_Slide ( )
virtual

Returns the parent slide of a comment. Read-only ISlide.

Implements Aspose::Slides::IComment.

◆ get_Text()

System::String Aspose::Slides::Comment::get_Text ( )
virtual

Returns the plain text of a slide comment. Read System::String.

Implements Aspose::Slides::IComment.

◆ get_TimeZoneBias()

int32_t Aspose::Slides::Comment::get_TimeZoneBias ( ) const
protected

Gets time zone bias, in minutes. Read int32_t.

◆ Remove()

void Aspose::Slides::Comment::Remove ( )
virtual

Removes comment and all its replies from the parent collection.

Exceptions
PptxEditExceptionThrown if comment is already removed

Implements Aspose::Slides::IComment.

◆ set_CreatedTime()

void Aspose::Slides::Comment::set_CreatedTime ( System::DateTime  value)
virtual

Sets the time of a comment creation. Setting this property to DateTime::MinValue means no comment time is set. Write DateTime.

Comment time is an optional parameter.

Implements Aspose::Slides::IComment.

◆ set_ParentComment()

void Aspose::Slides::Comment::set_ParentComment ( System::SharedPtr< IComment value)
virtual

Sets parent comment. Write IComment.

Exceptions
PptxEditExceptionThrown when setting the value leads to a circular reference

Implements Aspose::Slides::IComment.

◆ set_Position()

void Aspose::Slides::Comment::set_Position ( System::Drawing::PointF  value)
virtual

Sets the position of a comment on a slide. Write PointF.

Implements Aspose::Slides::IComment.

◆ set_Text()

void Aspose::Slides::Comment::set_Text ( System::String  value)
virtual

Sets the plain text of a slide comment. Write System::String.

Implements Aspose::Slides::IComment.

◆ set_TimeZoneBias()

void Aspose::Slides::Comment::set_TimeZoneBias ( int32_t  value)
protected

Sets time zone bias, in minutes. Write int32_t.