Represents shape frame's properties. More...

Inherits Aspose::Slides::IShapeFrame.

Public Member Functions

float get_X ()
 Returns the X coordinate of the upper-left corner of a frame. Read-only float. More...
 
float get_Y ()
 Returns the Y coordinate of the upper-left corner of a frame. Read-only float. More...
 
float get_Width ()
 Returns the width of a frame. Read-only float. More...
 
float get_Height ()
 Returns the height of a frame. Read-only float. More...
 
float get_Rotation ()
 Returns the number of degrees a frame is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Read-only float. More...
 
float get_CenterX ()
 Returns the X coordinate of a frame's center. Read-only float. More...
 
float get_CenterY ()
 Returns the Y coordinate of a frame's center. Read-only float. More...
 
NullableBool get_FlipH ()
 Determines whether a frame is flipped horizontally. Read-only NullableBool. More...
 
NullableBool get_FlipV ()
 Determines whether a frame is flipped vertically. Read-only NullableBool. More...
 
System::Drawing::RectangleF get_Rectangle ()
 Returns the coordinates of a frame. Read-only RectangleF. More...
 
 ShapeFrame (float x, float y, float width, float height, NullableBool flipH, NullableBool flipV, float rotationAngle)
 Creates new shape frame's properties. More...
 
System::SharedPtr< System::ObjectClone ()
 Clones More...
 
System::SharedPtr< IShapeFrameCloneT ()
 Clones. More...
 
virtual bool Equals (System::SharedPtr< System::Object > obj)
 Returns a value indicating whether this instance is equal to a specified object. More...
 
bool Equals (System::SharedPtr< ShapeFrame > value)
 Returns a value indicating whether this instance is equal to a specified object. More...
 
virtual int32_t GetHashCode () const
 Returns a hash code for this object. 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 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

 ShapeFrame ()
 
System::SharedPtr< PresentationML::Transform2D > ToTransform2D ()
 

Static Protected Member Functions

static float NormalizeRotation (double rotation)
 

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 shape frame's properties.

Constructor & Destructor Documentation

◆ ShapeFrame() [1/2]

Aspose::Slides::ShapeFrame::ShapeFrame ( float  x,
float  y,
float  width,
float  height,
NullableBool  flipH,
NullableBool  flipV,
float  rotationAngle 
)

Creates new shape frame's properties.

Parameters
xX coordinate of a frame.
yY coordinate of a frame.
widthWidth of a frame.
heightHeight of a frame.
flipHTrue if a frame flipped horizontally.
flipVTrue if a frame flipped vertivally.
rotationAngleNumber of degrees a frame is rotated.

◆ ShapeFrame() [2/2]

Aspose::Slides::ShapeFrame::ShapeFrame ( )
protected

Member Function Documentation

◆ Clone()

System::SharedPtr<System::Object> Aspose::Slides::ShapeFrame::Clone ( )
virtual

Clones

Returns
Cloned shape frame.

Implements System::ICloneable.

◆ CloneT()

System::SharedPtr<IShapeFrame> Aspose::Slides::ShapeFrame::CloneT ( )
virtual

◆ Equals() [1/2]

virtual bool Aspose::Slides::ShapeFrame::Equals ( System::SharedPtr< System::Object obj)
virtual

Returns a value indicating whether this instance is equal to a specified object.

Parameters
objThe object to compare with this instance.
Returns
True if obj is a ShapeFrame that has the same value as this instance; otherwise, false.

◆ Equals() [2/2]

bool Aspose::Slides::ShapeFrame::Equals ( System::SharedPtr< ShapeFrame value)

Returns a value indicating whether this instance is equal to a specified object.

Parameters
valueThe ShapeFRameEx to compare with this instance.
Returns
True if value is a ShapeFrame that has the same value as this instance; otherwise, false.

◆ get_CenterX()

float Aspose::Slides::ShapeFrame::get_CenterX ( )
virtual

Returns the X coordinate of a frame's center. Read-only float.

Implements Aspose::Slides::IShapeFrame.

◆ get_CenterY()

float Aspose::Slides::ShapeFrame::get_CenterY ( )
virtual

Returns the Y coordinate of a frame's center. Read-only float.

Implements Aspose::Slides::IShapeFrame.

◆ get_FlipH()

NullableBool Aspose::Slides::ShapeFrame::get_FlipH ( )
virtual

Determines whether a frame is flipped horizontally. Read-only NullableBool.

Implements Aspose::Slides::IShapeFrame.

◆ get_FlipV()

NullableBool Aspose::Slides::ShapeFrame::get_FlipV ( )
virtual

Determines whether a frame is flipped vertically. Read-only NullableBool.

Implements Aspose::Slides::IShapeFrame.

◆ get_Height()

float Aspose::Slides::ShapeFrame::get_Height ( )
virtual

Returns the height of a frame. Read-only float.

Implements Aspose::Slides::IShapeFrame.

◆ get_Rectangle()

System::Drawing::RectangleF Aspose::Slides::ShapeFrame::get_Rectangle ( )
virtual

Returns the coordinates of a frame. Read-only RectangleF.

Implements Aspose::Slides::IShapeFrame.

◆ get_Rotation()

float Aspose::Slides::ShapeFrame::get_Rotation ( )
virtual

Returns the number of degrees a frame is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Read-only float.

Implements Aspose::Slides::IShapeFrame.

◆ get_Width()

float Aspose::Slides::ShapeFrame::get_Width ( )
virtual

Returns the width of a frame. Read-only float.

Implements Aspose::Slides::IShapeFrame.

◆ get_X()

float Aspose::Slides::ShapeFrame::get_X ( )
virtual

Returns the X coordinate of the upper-left corner of a frame. Read-only float.

Implements Aspose::Slides::IShapeFrame.

◆ get_Y()

float Aspose::Slides::ShapeFrame::get_Y ( )
virtual

Returns the Y coordinate of the upper-left corner of a frame. Read-only float.

Implements Aspose::Slides::IShapeFrame.

◆ GetHashCode()

virtual int32_t Aspose::Slides::ShapeFrame::GetHashCode ( ) const
virtual

Returns a hash code for this object.

Reimplemented from System::Object.

◆ NormalizeRotation()

static float Aspose::Slides::ShapeFrame::NormalizeRotation ( double  rotation)
staticprotected

◆ ToTransform2D()

System::SharedPtr<PresentationML::Transform2D> Aspose::Slides::ShapeFrame::ToTransform2D ( )
protected