Represents a shape on a slide. More...

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

Inherited by Aspose::Slides::GeometryShape, Aspose::Slides::GraphicalObject, and Aspose::Slides::GroupShape.

Public Member Functions

bool get_IsTextHolder ()
 Determines whether the shape is TextHolder_PPT. Read-only bool. More...
 
System::SharedPtr< IPlaceholderget_Placeholder ()
 Returns the placeholder for a shape. Returns null if the shape has no placeholder. Read-only IPlaceholder. More...
 
System::SharedPtr< ICustomDataget_CustomData ()
 Returns the shape's custom data. Read-only ICustomData. More...
 
System::SharedPtr< IShapeFrameget_RawFrame ()
 Returns the raw shape frame's properties. Read IShapeFrame. More...
 
void set_RawFrame (System::SharedPtr< IShapeFrame > value)
 Sets the raw shape frame's properties. Write IShapeFrame. More...
 
System::SharedPtr< PresentationML::Transform2D > _anonymous_method_1 ()
 
System::SharedPtr< IShapeFrameget_Frame ()
 Returns the shape frame's properties. Read IShapeFrame. More...
 
void set_Frame (System::SharedPtr< IShapeFrame > value)
 Sets the shape frame's properties. Write IShapeFrame. More...
 
virtual System::SharedPtr< ILineFormatget_LineFormat ()
 Returns the LineFormat object that contains line formatting properties for a shape. Note: can return null for certain types of shapes which don't have line properties. Read-only ILineFormat. More...
 
virtual System::SharedPtr< IThreeDFormatget_ThreeDFormat ()
 Returns the ThreeDFormat object that 3d effect properties for a shape. Note: can return null for certain types of shapes which don't have 3d properties. Read-only IThreeDFormat. More...
 
virtual System::SharedPtr< IEffectFormatget_EffectFormat ()
 Returns the EffectFormat object which contains pixel effects applied to a shape. Note: can return null for certain types of shapes which don't have effect properties. Read-only IEffectFormat. More...
 
virtual System::SharedPtr< IFillFormatget_FillFormat ()
 Returns the FillFormat object that contains fill formatting properties for a shape. Note: can return null for certain types of shapes which don't have fill properties. Read-only IFillFormat. More...
 
System::SharedPtr< IHyperlinkget_HyperlinkClick ()
 Returns the hyperlink defined for mouse click. Read IHyperlink. More...
 
void set_HyperlinkClick (System::SharedPtr< IHyperlink > value)
 Sets the hyperlink defined for mouse click. Write IHyperlink. More...
 
System::SharedPtr< IHyperlinkget_HyperlinkMouseOver ()
 Returns the hyperlink defined for mouse over. Read IHyperlink. More...
 
void set_HyperlinkMouseOver (System::SharedPtr< IHyperlink > value)
 Sets the hyperlink defined for mouse over. Write IHyperlink. More...
 
System::SharedPtr< IHyperlinkManagerget_HyperlinkManager ()
 Returns the hyperlink manager. Read-only IHyperlinkManager. More...
 
bool get_Hidden ()
 Determines whether the shape is hidden. Read bool. More...
 
void set_Hidden (bool value)
 Determines whether the shape is hidden. Write bool. More...
 
virtual int32_t get_ZOrderPosition ()
 Returns the position of a shape in the z-order. Shapes[0] returns the shape at the back of the z-order, and Shapes[Shapes.Count - 1] returns the shape at the front of the z-order. Read-only int32_t. More...
 
int32_t get_ConnectionSiteCount ()
 Returns the number of connection sites on the shape. Read-only int32_t. More...
 
float get_Rotation ()
 Returns the number of degrees the specified shape is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Read float. More...
 
void set_Rotation (float value)
 Sets the number of degrees the specified shape is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Write float. More...
 
float get_X ()
 Returns the x-coordinate of the upper-left corner of the shape. Read float. More...
 
void set_X (float value)
 Sets the x-coordinate of the upper-left corner of the shape. Write float. More...
 
float get_Y ()
 Returns the y-coordinate of the upper-left corner of the shape. Read float. More...
 
void set_Y (float value)
 Sets the y-coordinate of the upper-left corner of the shape. Write float. More...
 
float get_Width ()
 Returns the width of the shape. Read float. More...
 
void set_Width (float value)
 Sets the width of the shape. Write float. More...
 
float get_Height ()
 Returns the height of the shape. Read float. More...
 
void set_Height (float value)
 Sets the height of the shape. Write float. More...
 
Aspose::Slides::BlackWhiteMode get_BlackWhiteMode ()
 Property specifies how a shape will render in black-and-white display mode.. Read Slides::BlackWhiteMode. More...
 
void set_BlackWhiteMode (Aspose::Slides::BlackWhiteMode value)
 Property specifies how a shape will render in black-and-white display mode.. Write Slides::BlackWhiteMode. More...
 
uint32_t get_UniqueId ()
 Gets unique shape identifier in presentation scope. Read-only uint32_t. See also OfficeInteropShapeId for getting unique shape identifier in slide scope. More...
 
uint32_t get_OfficeInteropShapeId ()
 Gets unique shape identifier in slide scope. Read-only uint32_t. See also UniqueId for getting unique shape identifier in presentation scope. More...
 
virtual System::String get_AlternativeText ()
 Returns the alternative text associated with a shape. Read System::String. More...
 
virtual void set_AlternativeText (System::String value)
 Sets the alternative text associated with a shape. Write System::String. More...
 
virtual System::String get_AlternativeTextTitle ()
 Returns the title of alternative text associated with a shape. Read System::String. More...
 
virtual void set_AlternativeTextTitle (System::String value)
 Sets the title of alternative text associated with a shape. Write System::String. More...
 
virtual System::String get_Name ()
 Returns the name of a shape. Must be not null. Use empty string value if needed. Read System::String. More...
 
virtual void set_Name (System::String value)
 Sets the name of a shape. Must be not null. Use empty string value if needed. Write System::String. More...
 
System::SharedPtr< IBaseShapeLockget_ShapeLock ()
 Returns shape's locks. Read-only IBaseShapeLock. More...
 
bool get_IsGrouped ()
 Determines whether the shape is grouped. Read-only bool. More...
 
System::SharedPtr< IGroupShapeget_ParentGroup ()
 Returns parent GroupShape object if shape is grouped. Otherwise returns null. Read-only IGroupShape. More...
 
System::SharedPtr< IDOMObjectget_Parent_Immediate ()
 Returns Parent_Immediate object. Read-only IDOMObject. More...
 
System::SharedPtr< IBaseSlideget_Slide ()
 Returns the parent slide of a shape. Read-only IBaseSlide. More...
 
System::SharedPtr< IPresentationget_Presentation ()
 Returns the parent presentation of a slide. Read-only IPresentation. More...
 
System::SharedPtr< Aspose::Slides::ThreeDFormat_anonymous_method_2 ()
 
System::SharedPtr< Aspose::Slides::ThreeDFormat_anonymous_method_3 ()
 
System::SharedPtr< Aspose::Slides::LineFormat_anonymous_method_4 ()
 
void _anonymous_method_6 (System::SharedPtr< ILineFormat > registryReference)
 
System::SharedPtr< Aspose::Slides::LineFormat_anonymous_method_5 ()
 
System::SharedPtr< Aspose::Slides::EffectFormat_anonymous_method_7 ()
 
System::SharedPtr< Aspose::Slides::EffectFormat_anonymous_method_8 ()
 
void RemovePlaceholder ()
 Defines that this shape isn't a placeholder. More...
 
System::SharedPtr< IPlaceholderAddPlaceholder (System::SharedPtr< IPlaceholder > placeholderToCopyFrom)
 Adds a new placeholder if there is no and sets placeholder properties to a specified one. More...
 
System::SharedPtr< ILineFormatEffectiveDataCreateLineFormatEffective ()
 Creates the LineFormatEffectiveData object that contains all line formatting properties for a shape, included inherited. More...
 
System::SharedPtr< IFillFormatEffectiveDataCreateFillFormatEffective ()
 Creates the FillFormatEffectiveData object that contains all fill formatting properties for a shape, included inherited. More...
 
System::SharedPtr< IEffectFormatEffectiveDataCreateEffectFormatEffective ()
 Creates the EffectFormatEffectiveData object that contains all effects applyed to a shape, included inherited. More...
 
System::SharedPtr< IThreeDFormatEffectiveDataCreateThreeDFormatEffective ()
 Creates the ThreeDFormatEffectiveData object that contains volume properties and 3D transformation of a shape, included inherited. More...
 
System::SharedPtr< System::Drawing::BitmapGetThumbnail ()
 Returns shape thumbnail. ShapeThumbnailBounds.Shape shape thumbnail bounds type is used by default. More...
 
System::SharedPtr< System::Drawing::BitmapGetThumbnail (ShapeThumbnailBounds bounds, float scaleX, float scaleY)
 Returns shape thumbnail. More...
 
void WriteAsSvg (System::SharedPtr< System::IO::Stream > stream)
 Saves content of Shape as SVG file. More...
 
void WriteAsSvg (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< Export::ISVGOptions > svgOptions)
 Saves content of Shape as SVG file. 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)
 

Static Public Member Functions

static System::SharedPtr< PresentationML::Transform2D > _anonymous_method_0 ()
 
- 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...
 

Protected Types

template<typename T >
using Get = System::MulticastDelegate< T()>
 
using ParameterlessShapeEvent = System::MulticastDelegate< void(System::SharedPtr< Shape >)>
 

Protected Member Functions

bool get_Unprocessed () const
 Determines whether shape will be serialized in XML. More...
 
void set_Unprocessed (bool value)
 Determines whether shape will be serialized in XML. More...
 
bool get_IsScalingProcess ()
 Determins whether scaling process is actual or not More...
 
void set_IsScalingProcess (bool value)
 Determins whether scaling process is actual or not More...
 
System::SharedPtr< PresentationML::Transform2D > get_Transform2DInternal ()
 
void set_Transform2DInternal (System::SharedPtr< PresentationML::Transform2D > value)
 
System::SharedPtr< ShapeFrameget_FrameImpl ()
 
void set_FrameImpl (System::SharedPtr< ShapeFrame > value)
 
System::SharedPtr< UnsupportedProps::PPTXUnsupportedProps::ShapePPTXUnsupportedProps > get_PPTXUnsupportedProps ()
 
System::SharedPtr< UnsupportedProps::PPTUnsupportedProps::ShapePPTUnsupportedProps > get_PPTUnsupportedProps ()
 
System::ArrayPtr< System::Drawing::PointFget_ConnectionPoints ()
 Gets array of connection poits. More...
 
System::ArrayPtr< float > get_ConnectionDirections ()
 Gets array of connection angle directions. Angle in degree. More...
 
bool get_SwapXY ()
 
System::Drawing::RectangleF get_ShapeRectangleRotated ()
 
uint32_t get_ShapeId ()
 
void set_ShapeLock (System::SharedPtr< IBaseShapeLock > value)
 Returns shape's locks. Read-only IBaseShapeLock. More...
 
virtual uint32_t get_Version_OldMode ()
 
System::SharedPtr< GroupShapeget_ParentGroupInternal ()
 
System::String get_GeometryTextFont ()
 
void set_GeometryTextFont (System::String value)
 
System::String get_GeometryText ()
 
void set_GeometryText (System::String value)
 
virtual bool get_MetroBlobRequired ()
 Shows if saving this shape to ppt requires GroupShapeMetroBlob record to save all shape's properties correctly More...
 
System::SharedPtr< IPresentationComponentget_Parent_IPresentationComponent ()
 
System::SharedPtr< ISlideComponentget_Parent_ISlideComponent ()
 
System::SharedPtr< ShapeCollectionget_Parent_ShapeCollection ()
 
System::SharedPtr< BaseSlideget_SlideInternal ()
 
System::SharedPtr< Aspose::Slides::ThreeDFormatGetThreeDFormatLazy ()
 
System::SharedPtr< Aspose::Slides::LineFormatGetLineFormatLazy ()
 
System::SharedPtr< Aspose::Slides::LineFormatGetLineFormatRawRef ()
 
System::SharedPtr< Aspose::Slides::LineFormatGetLineFormatRawRef (System::SharedPtr< Shape > parent)
 
System::SharedPtr< Aspose::Slides::EffectFormatGetEffectFormatLazy ()
 
void SetEffectFormat (System::SharedPtr< Aspose::Slides::EffectFormat > effectFormat)
 
void SetLineFormatRawRef (System::SharedPtr< Aspose::Slides::LineFormat > lineFormat)
 
template<typename T >
GetLazy (Shape::Get< T > create, Shape::Get< T > get, T notDefined)
 
void SetPlaceholder (Orientation orientation, PlaceholderSize size, PlaceholderType type, uint32_t index, bool hasCustomPrompt)
 Defines this shape as a placeholder. More...
 
virtual System::SharedPtr< PresentationML::Transform2D > GetRawFrameImpl ()
 
virtual void SetRawFrameImpl (System::SharedPtr< PresentationML::Transform2D > value)
 
System::SharedPtr< ShapeFrameGetEffectiveRawFrame ()
 
System::ArrayPtr< System::SharedPtr< Shape > > GetPrototypes ()
 Returns shapes from the layout and/or master slide that the current shape is inherited from. An empty array is returned if the current shape is not inherited. More...
 
System::SharedPtr< ShapeGetInheritedPlaceholder ()
 Returns shape from the layout and/or master slide that the current shape is inherited from. A null is returned if the current shape is not inherited. More...
 
System::SharedPtr< ShapeFrameGetSlideSpaceFrame ()
 
System::SharedPtr< ShapeFrameGetSlideSpaceFrame (System::SharedPtr< IShapeFrame > frameRect)
 
void SetSlideSpaceFrame (System::SharedPtr< ShapeFrame > value)
 
System::SharedPtr< PresentationML::Transform2D > SlideSpaceToRaw (System::SharedPtr< ShapeFrame > value)
 
virtual System::SharedPtr< ILineFormatEffectiveDataCreateLineFormatEffectiveImpl ()
 
virtual System::SharedPtr< IFillFormatEffectiveDataCreateFillFormatEffectiveImpl ()
 
virtual System::SharedPtr< IEffectFormatEffectiveDataCreateEffectFormatEffectiveImpl ()
 
virtual System::SharedPtr< IThreeDFormatEffectiveDataCreateThreeDFormatEffectiveImpl ()
 
 Shape (System::SharedPtr< IDOMObject > parentImmediate)
 
 Shape (System::SharedPtr< IDOMObject > parentImmediate, System::SharedPtr< UnsupportedProps::PPTXUnsupportedProps::ShapePPTXUnsupportedProps > pptxUnsupportedProps)
 
 Shape (System::SharedPtr< IDOMObject > parentImmediate, System::SharedPtr< UnsupportedProps::PPTXUnsupportedProps::ShapePPTXUnsupportedProps > pptxUnsupportedProps, System::SharedPtr< UnsupportedProps::PPTUnsupportedProps::ShapePPTUnsupportedProps > pptUnsupportedProps)
 
virtual void Draw (System::SharedPtr< Drawing::Canvas > canvas, System::SharedPtr< Drawing::RenderContext > rc, System::SharedPtr< InterruptionToken > interruptionToken)
 
virtual System::ArrayPtr< System::Drawing::PointFCreateConnectionPoints ()
 Returns connection points array or null. More...
 
virtual System::ArrayPtr< float > CreateConnectionDirections ()
 Returns array of connection angle directions in degree or null. More...
 
virtual void ZOrder (ZOrderCmd cmd)
 Moves the shape in front of or behind other shapes in the collection (that is, changes the shape's position in the z-order). More...
 
void SetUniqueId (System::String value)
 Tries to sets shape unique id value. If value is not uint then generates new unique value. If value is uint and presentation already contains other shape with this value, then will be generated new unique value. More...
 
void SetShapeId (uint32_t id)
 Initialize Shape ID once. If call this method more then one time it raize exception. More...
 
void RedefineShapeId (uint32_t id)
 
uint32_t CreateShapeId ()
 
virtual void ScaleGeometry (float scalingCoefX, float scalingCoefY, float scalingContentCoef)
 
virtual void LocateGeometry (float locatingCoefX, float locatingCoefY)
 
virtual void Reset ()
 Sets all formats to NotDefined state. For shapes with placeholders this will cause default state. More...
 
void ScaleSizes (float scalingCoefX, float scalingCoefY, float scalingContentCoef)
 
virtual void ProcessFitShapeToText ()
 Calculates required size for shape's textframe and More...
 
virtual void ConfirmTextFrameIsFittedToShape ()
 This method used for optimization purposes. When size/position/text of TextFrame is changed or size/position of shape is changed then size/position of shape and TextFrame will be fitted one to other. This "fitting" procedure get many resources and if you know that size/position of shape and TextFrame are already matched one to other than you can cancel upcoming "fitting" procedure with calling this ConfirmTextFrameIsFittedToShape() method. Cancelling will be performed one time, not permanent - this mean that if for example TextFrame will be changed in future then "fitting" procedure will become upcoming again. More...
 
void Changed_OldMode ()
 
virtual void ShapeSizeUpdated ()
 
virtual void BeforeRemove ()
 
void ResetFrame ()
 
void SetParent (System::SharedPtr< IDOMObject > parentImmediate)
 

Static Protected Member Functions

static System::SharedPtr< Aspose::Foundation::Drawing::DrMatrix > CalcTransform (System::SharedPtr< IShapeFrame > frame)
 
static bool IsClockwise (float x1, float y1, float x2, float y2, float x3, float y3)
 

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...
 

Detailed Description

Represents a shape on a slide.

Member Typedef Documentation

◆ Get

template<typename T >
using Aspose::Slides::Shape::Get = System::MulticastDelegate<T()>
protected

◆ ParameterlessShapeEvent

Constructor & Destructor Documentation

◆ Shape() [1/3]

Aspose::Slides::Shape::Shape ( System::SharedPtr< IDOMObject parentImmediate)
protected

◆ Shape() [2/3]

Aspose::Slides::Shape::Shape ( System::SharedPtr< IDOMObject parentImmediate,
System::SharedPtr< UnsupportedProps::PPTXUnsupportedProps::ShapePPTXUnsupportedProps >  pptxUnsupportedProps 
)
protected

◆ Shape() [3/3]

Aspose::Slides::Shape::Shape ( System::SharedPtr< IDOMObject parentImmediate,
System::SharedPtr< UnsupportedProps::PPTXUnsupportedProps::ShapePPTXUnsupportedProps >  pptxUnsupportedProps,
System::SharedPtr< UnsupportedProps::PPTUnsupportedProps::ShapePPTUnsupportedProps >  pptUnsupportedProps 
)
protected

Member Function Documentation

◆ _anonymous_method_0()

static System::SharedPtr<PresentationML::Transform2D> Aspose::Slides::Shape::_anonymous_method_0 ( )
static

◆ _anonymous_method_1()

System::SharedPtr<PresentationML::Transform2D> Aspose::Slides::Shape::_anonymous_method_1 ( )

◆ _anonymous_method_2()

System::SharedPtr<Aspose::Slides::ThreeDFormat> Aspose::Slides::Shape::_anonymous_method_2 ( )

◆ _anonymous_method_3()

System::SharedPtr<Aspose::Slides::ThreeDFormat> Aspose::Slides::Shape::_anonymous_method_3 ( )

◆ _anonymous_method_4()

System::SharedPtr<Aspose::Slides::LineFormat> Aspose::Slides::Shape::_anonymous_method_4 ( )

◆ _anonymous_method_5()

System::SharedPtr<Aspose::Slides::LineFormat> Aspose::Slides::Shape::_anonymous_method_5 ( )

◆ _anonymous_method_6()

void Aspose::Slides::Shape::_anonymous_method_6 ( System::SharedPtr< ILineFormat registryReference)

◆ _anonymous_method_7()

System::SharedPtr<Aspose::Slides::EffectFormat> Aspose::Slides::Shape::_anonymous_method_7 ( )

◆ _anonymous_method_8()

System::SharedPtr<Aspose::Slides::EffectFormat> Aspose::Slides::Shape::_anonymous_method_8 ( )

◆ AddPlaceholder()

System::SharedPtr<IPlaceholder> Aspose::Slides::Shape::AddPlaceholder ( System::SharedPtr< IPlaceholder placeholderToCopyFrom)
virtual

Adds a new placeholder if there is no and sets placeholder properties to a specified one.

Parameters
placeholderToCopyFromPlaceholder to copy content from.
Returns
New Placeholder.

Implements Aspose::Slides::IShape.

◆ BeforeRemove()

virtual void Aspose::Slides::Shape::BeforeRemove ( )
protectedvirtual

Reimplemented in Aspose::Slides::GroupShape.

◆ CalcTransform()

static System::SharedPtr<Aspose::Foundation::Drawing::DrMatrix> Aspose::Slides::Shape::CalcTransform ( System::SharedPtr< IShapeFrame frame)
staticprotected

◆ Changed_OldMode()

void Aspose::Slides::Shape::Changed_OldMode ( )
protected

◆ ConfirmTextFrameIsFittedToShape()

virtual void Aspose::Slides::Shape::ConfirmTextFrameIsFittedToShape ( )
protectedvirtual

This method used for optimization purposes. When size/position/text of TextFrame is changed or size/position of shape is changed then size/position of shape and TextFrame will be fitted one to other. This "fitting" procedure get many resources and if you know that size/position of shape and TextFrame are already matched one to other than you can cancel upcoming "fitting" procedure with calling this ConfirmTextFrameIsFittedToShape() method. Cancelling will be performed one time, not permanent - this mean that if for example TextFrame will be changed in future then "fitting" procedure will become upcoming again.

Reimplemented in Aspose::Slides::AutoShape.

◆ CreateConnectionDirections()

virtual System::ArrayPtr<float> Aspose::Slides::Shape::CreateConnectionDirections ( )
protectedvirtual

Returns array of connection angle directions in degree or null.

Reimplemented in Aspose::Slides::Connector, Aspose::Slides::GeometryShape, Aspose::Slides::GroupShape, and Aspose::Slides::SmartArt::SmartArtShape.

◆ CreateConnectionPoints()

virtual System::ArrayPtr<System::Drawing::PointF> Aspose::Slides::Shape::CreateConnectionPoints ( )
protectedvirtual

◆ CreateEffectFormatEffective()

System::SharedPtr<IEffectFormatEffectiveData> Aspose::Slides::Shape::CreateEffectFormatEffective ( )
virtual

Creates the EffectFormatEffectiveData object that contains all effects applyed to a shape, included inherited.

Deprecated:
Use EffectFormat.GetEffective() instead. The method will be removed after release of version 20.8.
Returns
EffectFormatEffectiveData.

Implements Aspose::Slides::IShape.

◆ CreateEffectFormatEffectiveImpl()

virtual System::SharedPtr<IEffectFormatEffectiveData> Aspose::Slides::Shape::CreateEffectFormatEffectiveImpl ( )
protectedvirtual

Reimplemented in Aspose::Slides::GeometryShape.

◆ CreateFillFormatEffective()

System::SharedPtr<IFillFormatEffectiveData> Aspose::Slides::Shape::CreateFillFormatEffective ( )
virtual

Creates the FillFormatEffectiveData object that contains all fill formatting properties for a shape, included inherited.

Deprecated:
Use FillFormat.GetEffective() instead. The method will be removed after release of version 20.8.
Returns
FillFormatEffectiveData.

Implements Aspose::Slides::IShape.

◆ CreateFillFormatEffectiveImpl()

virtual System::SharedPtr<IFillFormatEffectiveData> Aspose::Slides::Shape::CreateFillFormatEffectiveImpl ( )
protectedvirtual

◆ CreateLineFormatEffective()

System::SharedPtr<ILineFormatEffectiveData> Aspose::Slides::Shape::CreateLineFormatEffective ( )
virtual

Creates the LineFormatEffectiveData object that contains all line formatting properties for a shape, included inherited.

Deprecated:
Use LineFormat.GetEffective() instead. The method will be removed after release of version 20.8.
Returns
LineFormatEffectiveData.

Implements Aspose::Slides::IShape.

◆ CreateLineFormatEffectiveImpl()

virtual System::SharedPtr<ILineFormatEffectiveData> Aspose::Slides::Shape::CreateLineFormatEffectiveImpl ( )
protectedvirtual

Reimplemented in Aspose::Slides::GeometryShape.

◆ CreateShapeId()

uint32_t Aspose::Slides::Shape::CreateShapeId ( )
protected

◆ CreateThreeDFormatEffective()

System::SharedPtr<IThreeDFormatEffectiveData> Aspose::Slides::Shape::CreateThreeDFormatEffective ( )
virtual

Creates the ThreeDFormatEffectiveData object that contains volume properties and 3D transformation of a shape, included inherited.

Deprecated:
Use ThreeDFormatFormat.GetEffective() instead. The method will be removed after release of version 20.8.
Returns
ThreeDFormatEffectiveData.

Implements Aspose::Slides::IShape.

◆ CreateThreeDFormatEffectiveImpl()

virtual System::SharedPtr<IThreeDFormatEffectiveData> Aspose::Slides::Shape::CreateThreeDFormatEffectiveImpl ( )
protectedvirtual

Reimplemented in Aspose::Slides::GeometryShape.

◆ Draw()

virtual void Aspose::Slides::Shape::Draw ( System::SharedPtr< Drawing::Canvas >  canvas,
System::SharedPtr< Drawing::RenderContext >  rc,
System::SharedPtr< InterruptionToken interruptionToken 
)
protectedvirtual

◆ get_AlternativeText()

virtual System::String Aspose::Slides::Shape::get_AlternativeText ( )
virtual

Returns the alternative text associated with a shape. Read System::String.

Implements Aspose::Slides::IShape.

◆ get_AlternativeTextTitle()

virtual System::String Aspose::Slides::Shape::get_AlternativeTextTitle ( )
virtual

Returns the title of alternative text associated with a shape. Read System::String.

Implements Aspose::Slides::IShape.

◆ get_BlackWhiteMode()

Aspose::Slides::BlackWhiteMode Aspose::Slides::Shape::get_BlackWhiteMode ( )
virtual

Property specifies how a shape will render in black-and-white display mode.. Read Slides::BlackWhiteMode.

Implements Aspose::Slides::IShape.

◆ get_ConnectionDirections()

System::ArrayPtr<float> Aspose::Slides::Shape::get_ConnectionDirections ( )
protected

Gets array of connection angle directions. Angle in degree.

270 | 180—|—0 | 90

◆ get_ConnectionPoints()

System::ArrayPtr<System::Drawing::PointF> Aspose::Slides::Shape::get_ConnectionPoints ( )
protected

Gets array of connection poits.

◆ get_ConnectionSiteCount()

int32_t Aspose::Slides::Shape::get_ConnectionSiteCount ( )
virtual

Returns the number of connection sites on the shape. Read-only int32_t.

Implements Aspose::Slides::IShape.

◆ get_CustomData()

System::SharedPtr<ICustomData> Aspose::Slides::Shape::get_CustomData ( )
virtual

Returns the shape's custom data. Read-only ICustomData.

Implements Aspose::Slides::IShape.

◆ get_EffectFormat()

virtual System::SharedPtr<IEffectFormat> Aspose::Slides::Shape::get_EffectFormat ( )
virtual

Returns the EffectFormat object which contains pixel effects applied to a shape. Note: can return null for certain types of shapes which don't have effect properties. Read-only IEffectFormat.

Implements Aspose::Slides::IShape.

◆ get_FillFormat()

virtual System::SharedPtr<IFillFormat> Aspose::Slides::Shape::get_FillFormat ( )
virtual

Returns the FillFormat object that contains fill formatting properties for a shape. Note: can return null for certain types of shapes which don't have fill properties. Read-only IFillFormat.

Implements Aspose::Slides::IShape.

Reimplemented in Aspose::Slides::Table.

◆ get_Frame()

System::SharedPtr<IShapeFrame> Aspose::Slides::Shape::get_Frame ( )
virtual

Returns the shape frame's properties. Read IShapeFrame.

Value of each property of the returned IShapeFrame instance is not undefined (is not NaN or NotDefined). Value of each property of the assigned IShapeFrame instance must be not undefined (must be not NaN or NotDefined). You can set undefined values for RawFrame instance properties.

Implements Aspose::Slides::IShape.

◆ get_FrameImpl()

System::SharedPtr<ShapeFrame> Aspose::Slides::Shape::get_FrameImpl ( )
protected

◆ get_GeometryText()

System::String Aspose::Slides::Shape::get_GeometryText ( )
protected

◆ get_GeometryTextFont()

System::String Aspose::Slides::Shape::get_GeometryTextFont ( )
protected

◆ get_Height()

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

Returns the height of the shape. Read float.

Returned value is always defined (is not float.NaN). Assigned value must be defined (not float.NaN). You can set undefined values for RawFrame instance properties.

Implements Aspose::Slides::IShape.

◆ get_Hidden()

bool Aspose::Slides::Shape::get_Hidden ( )
virtual

Determines whether the shape is hidden. Read bool.

Implements Aspose::Slides::IShape.

◆ get_HyperlinkClick()

System::SharedPtr<IHyperlink> Aspose::Slides::Shape::get_HyperlinkClick ( )
virtual

Returns the hyperlink defined for mouse click. Read IHyperlink.

Implements Aspose::Slides::IHyperlinkContainer.

◆ get_HyperlinkManager()

System::SharedPtr<IHyperlinkManager> Aspose::Slides::Shape::get_HyperlinkManager ( )
virtual

Returns the hyperlink manager. Read-only IHyperlinkManager.

Implements Aspose::Slides::IHyperlinkContainer.

◆ get_HyperlinkMouseOver()

System::SharedPtr<IHyperlink> Aspose::Slides::Shape::get_HyperlinkMouseOver ( )
virtual

Returns the hyperlink defined for mouse over. Read IHyperlink.

Implements Aspose::Slides::IHyperlinkContainer.

◆ get_IsGrouped()

bool Aspose::Slides::Shape::get_IsGrouped ( )
virtual

Determines whether the shape is grouped. Read-only bool.

Property ParentGroup returns parent GroupShape object if shape is grouped.

Implements Aspose::Slides::IShape.

◆ get_IsScalingProcess()

bool Aspose::Slides::Shape::get_IsScalingProcess ( )
protected

Determins whether scaling process is actual or not

◆ get_IsTextHolder()

bool Aspose::Slides::Shape::get_IsTextHolder ( )
virtual

Determines whether the shape is TextHolder_PPT. Read-only bool.

Implements Aspose::Slides::IShape.

◆ get_LineFormat()

virtual System::SharedPtr<ILineFormat> Aspose::Slides::Shape::get_LineFormat ( )
virtual

Returns the LineFormat object that contains line formatting properties for a shape. Note: can return null for certain types of shapes which don't have line properties. Read-only ILineFormat.

Implements Aspose::Slides::IShape.

Reimplemented in Aspose::Slides::GroupShape.

◆ get_MetroBlobRequired()

virtual bool Aspose::Slides::Shape::get_MetroBlobRequired ( )
protectedvirtual

Shows if saving this shape to ppt requires GroupShapeMetroBlob record to save all shape's properties correctly

Reimplemented in Aspose::Slides::AutoShape, and Aspose::Slides::GraphicalObject.

◆ get_Name()

virtual System::String Aspose::Slides::Shape::get_Name ( )
virtual

Returns the name of a shape. Must be not null. Use empty string value if needed. Read System::String.

Implements Aspose::Slides::IShape.

◆ get_OfficeInteropShapeId()

uint32_t Aspose::Slides::Shape::get_OfficeInteropShapeId ( )
virtual

Gets unique shape identifier in slide scope. Read-only uint32_t. See also UniqueId for getting unique shape identifier in presentation scope.

Implements Aspose::Slides::IShape.

◆ get_Parent_Immediate()

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

Returns Parent_Immediate object. Read-only IDOMObject.

Implements Aspose::Slides::IDOMObject.

◆ get_Parent_IPresentationComponent()

System::SharedPtr<IPresentationComponent> Aspose::Slides::Shape::get_Parent_IPresentationComponent ( )
protected

◆ get_Parent_ISlideComponent()

System::SharedPtr<ISlideComponent> Aspose::Slides::Shape::get_Parent_ISlideComponent ( )
protected

◆ get_Parent_ShapeCollection()

System::SharedPtr<ShapeCollection> Aspose::Slides::Shape::get_Parent_ShapeCollection ( )
protected

◆ get_ParentGroup()

System::SharedPtr<IGroupShape> Aspose::Slides::Shape::get_ParentGroup ( )
virtual

Returns parent GroupShape object if shape is grouped. Otherwise returns null. Read-only IGroupShape.

Property IsGrouped determines whether the shape is grouped.

Implements Aspose::Slides::IShape.

◆ get_ParentGroupInternal()

System::SharedPtr<GroupShape> Aspose::Slides::Shape::get_ParentGroupInternal ( )
protected

◆ get_Placeholder()

System::SharedPtr<IPlaceholder> Aspose::Slides::Shape::get_Placeholder ( )
virtual

Returns the placeholder for a shape. Returns null if the shape has no placeholder. Read-only IPlaceholder.

Implements Aspose::Slides::IShape.

◆ get_PPTUnsupportedProps()

System::SharedPtr<UnsupportedProps::PPTUnsupportedProps::ShapePPTUnsupportedProps> Aspose::Slides::Shape::get_PPTUnsupportedProps ( )
protected

◆ get_PPTXUnsupportedProps()

System::SharedPtr<UnsupportedProps::PPTXUnsupportedProps::ShapePPTXUnsupportedProps> Aspose::Slides::Shape::get_PPTXUnsupportedProps ( )
protected

◆ get_Presentation()

System::SharedPtr<IPresentation> Aspose::Slides::Shape::get_Presentation ( )
virtual

Returns the parent presentation of a slide. Read-only IPresentation.

Implements Aspose::Slides::IPresentationComponent.

◆ get_RawFrame()

System::SharedPtr<IShapeFrame> Aspose::Slides::Shape::get_RawFrame ( )
virtual

Returns the raw shape frame's properties. Read IShapeFrame.

Code that attempts to assign undefined frame to IShape.Frame doesn't make sence in general case (particulary in case when parent GroupShape is multiple nested into other GroupShape-s). For example: {code}IShape shape = ...; shape.Frame = new ShapeFrame(float.NaN, float.NaN, float.NaN, float.NaN, NullableBool.NotDefined, NullableBool.NotDefined, float.NaN);{code} or {code}slide.Shapes.AddAutoShape(ShapeType.RoundCornerRectangle, float.NaN, float.NaN, float.NaN, float.NaN);{code} Such code can lead to unclear situations. So restrictions had been added for using undefined values for IShape.Frame. Values of x, y, width, height, flipH, flipV and rotationAngle must be defined (not float.NaN or NullableBool.NotDefined). Example code above now throws ArgumentException exception. This applies to these use cases: {code}IShape shape = ...; shape.Frame = ...; // cannot be undefined

IShapeCollection shapes = ...; // x, y, width, height parameters cannot be float.NaN: { shapes.AddAudioFrameCD(...); shapes.AddAudioFrameEmbedded(...); shapes.AddAudioFrameLinked(...); shapes.AddAutoShape(...); shapes.AddChart(...); shapes.AddConnector(...); shapes.AddOleObjectFrame(...); shapes.AddPictureFrame(...); shapes.AddSmartArt(...); shapes.AddTable(...); shapes.AddVideoFrame(...); shapes.InsertAudioFrameEmbedded(...); shapes.InsertAudioFrameLinked(...); shapes.InsertAutoShape(...); shapes.InsertChart(...); shapes.InsertConnector(...); shapes.InsertOleObjectFrame(...); shapes.InsertPictureFrame(...); shapes.InsertTable(...); shapes.InsertVideoFrame(...); }{code}

But IShape.RawFrame frame properties can be undefined. This make sence when shape is linked to placeholder. Then undefined shape frame values is overridden from the parent placeholder shape. If there is no parent placeholder shape for that shape then that shape uses default values when it evaluates effective frame based on its IShape.RawFrame. Default values are 0 and NullableBool.False for x, y, width, height, flipH, flipV and rotationAngle. For example: {code}IShape shape = ...; // shape is linked to placeholder shape.RawFrame = new ShapeFrame(float.NaN, float.NaN, 100, float.NaN, NullableBool.NotDefined, NullableBool.NotDefined, 0); // now shape inherits x, y, height, flipH, flipV values form placeholder and overrides width=100 and rotationAngle=0.{code}

Implements Aspose::Slides::IShape.

◆ get_Rotation()

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

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

Returned value is always defined (is not float.NaN). Assigned value must be defined (not float.NaN). You can set undefined values for RawFrame instance properties.

Implements Aspose::Slides::IShape.

◆ get_ShapeId()

uint32_t Aspose::Slides::Shape::get_ShapeId ( )
protected

◆ get_ShapeLock()

System::SharedPtr<IBaseShapeLock> Aspose::Slides::Shape::get_ShapeLock ( )
virtual

Returns shape's locks. Read-only IBaseShapeLock.

Implements Aspose::Slides::IShape.

◆ get_ShapeRectangleRotated()

System::Drawing::RectangleF Aspose::Slides::Shape::get_ShapeRectangleRotated ( )
protected

◆ get_Slide()

System::SharedPtr<IBaseSlide> Aspose::Slides::Shape::get_Slide ( )
virtual

Returns the parent slide of a shape. Read-only IBaseSlide.

Implements Aspose::Slides::ISlideComponent.

◆ get_SlideInternal()

System::SharedPtr<BaseSlide> Aspose::Slides::Shape::get_SlideInternal ( )
protected

◆ get_SwapXY()

bool Aspose::Slides::Shape::get_SwapXY ( )
protected

◆ get_ThreeDFormat()

virtual System::SharedPtr<IThreeDFormat> Aspose::Slides::Shape::get_ThreeDFormat ( )
virtual

Returns the ThreeDFormat object that 3d effect properties for a shape. Note: can return null for certain types of shapes which don't have 3d properties. Read-only IThreeDFormat.

Implements Aspose::Slides::IShape.

◆ get_Transform2DInternal()

System::SharedPtr<PresentationML::Transform2D> Aspose::Slides::Shape::get_Transform2DInternal ( )
protected

◆ get_UniqueId()

uint32_t Aspose::Slides::Shape::get_UniqueId ( )
virtual

Gets unique shape identifier in presentation scope. Read-only uint32_t. See also OfficeInteropShapeId for getting unique shape identifier in slide scope.

Implements Aspose::Slides::IShape.

◆ get_Unprocessed()

bool Aspose::Slides::Shape::get_Unprocessed ( ) const
protected

Determines whether shape will be serialized in XML.

◆ get_Version_OldMode()

virtual uint32_t Aspose::Slides::Shape::get_Version_OldMode ( )
protectedvirtual

◆ get_Width()

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

Returns the width of the shape. Read float.

Returned value is always defined (is not float.NaN). Assigned value must be defined (not float.NaN). You can set undefined values for RawFrame instance properties.

Implements Aspose::Slides::IShape.

◆ get_X()

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

Returns the x-coordinate of the upper-left corner of the shape. Read float.

Returned value is always defined (is not float.NaN). Assigned value must be defined (not float.NaN). You can set undefined values for RawFrame instance properties.

Implements Aspose::Slides::IShape.

◆ get_Y()

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

Returns the y-coordinate of the upper-left corner of the shape. Read float.

Returned value is always defined (is not float.NaN). Assigned value must be defined (not float.NaN). You can set undefined values for RawFrame instance properties.

Implements Aspose::Slides::IShape.

◆ get_ZOrderPosition()

virtual int32_t Aspose::Slides::Shape::get_ZOrderPosition ( )
virtual

Returns the position of a shape in the z-order. Shapes[0] returns the shape at the back of the z-order, and Shapes[Shapes.Count - 1] returns the shape at the front of the z-order. Read-only int32_t.

Implements Aspose::Slides::IShape.

◆ GetEffectFormatLazy()

System::SharedPtr<Aspose::Slides::EffectFormat> Aspose::Slides::Shape::GetEffectFormatLazy ( )
protected

◆ GetEffectiveRawFrame()

System::SharedPtr<ShapeFrame> Aspose::Slides::Shape::GetEffectiveRawFrame ( )
protected

◆ GetInheritedPlaceholder()

System::SharedPtr<Shape> Aspose::Slides::Shape::GetInheritedPlaceholder ( )
protected

Returns shape from the layout and/or master slide that the current shape is inherited from. A null is returned if the current shape is not inherited.

◆ GetLazy()

template<typename T >
T Aspose::Slides::Shape::GetLazy ( Shape::Get< T >  create,
Shape::Get< T >  get,
notDefined 
)
inlineprotected

◆ GetLineFormatLazy()

System::SharedPtr<Aspose::Slides::LineFormat> Aspose::Slides::Shape::GetLineFormatLazy ( )
protected

◆ GetLineFormatRawRef() [1/2]

System::SharedPtr<Aspose::Slides::LineFormat> Aspose::Slides::Shape::GetLineFormatRawRef ( )
protected

◆ GetLineFormatRawRef() [2/2]

System::SharedPtr<Aspose::Slides::LineFormat> Aspose::Slides::Shape::GetLineFormatRawRef ( System::SharedPtr< Shape parent)
protected

◆ GetPrototypes()

System::ArrayPtr<System::SharedPtr<Shape> > Aspose::Slides::Shape::GetPrototypes ( )
protected

Returns shapes from the layout and/or master slide that the current shape is inherited from. An empty array is returned if the current shape is not inherited.

◆ GetRawFrameImpl()

virtual System::SharedPtr<PresentationML::Transform2D> Aspose::Slides::Shape::GetRawFrameImpl ( )
protectedvirtual

◆ GetSlideSpaceFrame() [1/2]

System::SharedPtr<ShapeFrame> Aspose::Slides::Shape::GetSlideSpaceFrame ( )
protected

◆ GetSlideSpaceFrame() [2/2]

System::SharedPtr<ShapeFrame> Aspose::Slides::Shape::GetSlideSpaceFrame ( System::SharedPtr< IShapeFrame frameRect)
protected

◆ GetThreeDFormatLazy()

System::SharedPtr<Aspose::Slides::ThreeDFormat> Aspose::Slides::Shape::GetThreeDFormatLazy ( )
protected

◆ GetThumbnail() [1/2]

System::SharedPtr<System::Drawing::Bitmap> Aspose::Slides::Shape::GetThumbnail ( )
virtual

Returns shape thumbnail. ShapeThumbnailBounds.Shape shape thumbnail bounds type is used by default.

Returns
Shape thumbnail.

Implements Aspose::Slides::IShape.

◆ GetThumbnail() [2/2]

System::SharedPtr<System::Drawing::Bitmap> Aspose::Slides::Shape::GetThumbnail ( ShapeThumbnailBounds  bounds,
float  scaleX,
float  scaleY 
)
virtual

Returns shape thumbnail.

Parameters
boundsShape thumbnail bounds type.
scaleXX scale
scaleYY scale
Returns
Shape thumbnail or null in case when ShapeThumbnailBounds.Appearance is used and a shape doesn't have visible elements.

Implements Aspose::Slides::IShape.

◆ IsClockwise()

static bool Aspose::Slides::Shape::IsClockwise ( float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3 
)
staticprotected

◆ LocateGeometry()

virtual void Aspose::Slides::Shape::LocateGeometry ( float  locatingCoefX,
float  locatingCoefY 
)
protectedvirtual

Reimplemented in Aspose::Slides::GroupShape.

◆ ProcessFitShapeToText()

virtual void Aspose::Slides::Shape::ProcessFitShapeToText ( )
protectedvirtual

Calculates required size for shape's textframe and

Reimplemented in Aspose::Slides::Table, and Aspose::Slides::AutoShape.

◆ RedefineShapeId()

void Aspose::Slides::Shape::RedefineShapeId ( uint32_t  id)
protected

◆ RemovePlaceholder()

void Aspose::Slides::Shape::RemovePlaceholder ( )
virtual

Defines that this shape isn't a placeholder.

Implements Aspose::Slides::IShape.

◆ Reset()

virtual void Aspose::Slides::Shape::Reset ( )
protectedvirtual

Sets all formats to NotDefined state. For shapes with placeholders this will cause default state.

Reimplemented in Aspose::Slides::Charts::Chart, Aspose::Slides::Table, Aspose::Slides::AutoShape, Aspose::Slides::VideoFrame, Aspose::Slides::PictureFrame, and Aspose::Slides::SmartArt::SmartArt.

◆ ResetFrame()

void Aspose::Slides::Shape::ResetFrame ( )
protected

◆ ScaleGeometry()

virtual void Aspose::Slides::Shape::ScaleGeometry ( float  scalingCoefX,
float  scalingCoefY,
float  scalingContentCoef 
)
protectedvirtual

◆ ScaleSizes()

void Aspose::Slides::Shape::ScaleSizes ( float  scalingCoefX,
float  scalingCoefY,
float  scalingContentCoef 
)
protected

◆ set_AlternativeText()

virtual void Aspose::Slides::Shape::set_AlternativeText ( System::String  value)
virtual

Sets the alternative text associated with a shape. Write System::String.

Implements Aspose::Slides::IShape.

◆ set_AlternativeTextTitle()

virtual void Aspose::Slides::Shape::set_AlternativeTextTitle ( System::String  value)
virtual

Sets the title of alternative text associated with a shape. Write System::String.

Implements Aspose::Slides::IShape.

◆ set_BlackWhiteMode()

void Aspose::Slides::Shape::set_BlackWhiteMode ( Aspose::Slides::BlackWhiteMode  value)
virtual

Property specifies how a shape will render in black-and-white display mode.. Write Slides::BlackWhiteMode.

Implements Aspose::Slides::IShape.

◆ set_Frame()

void Aspose::Slides::Shape::set_Frame ( System::SharedPtr< IShapeFrame value)
virtual

Sets the shape frame's properties. Write IShapeFrame.

Value of each property of the returned IShapeFrame instance is not undefined (is not NaN or NotDefined). Value of each property of the assigned IShapeFrame instance must be not undefined (must be not NaN or NotDefined). You can set undefined values for RawFrame instance properties.

Implements Aspose::Slides::IShape.

◆ set_FrameImpl()

void Aspose::Slides::Shape::set_FrameImpl ( System::SharedPtr< ShapeFrame value)
protected

◆ set_GeometryText()

void Aspose::Slides::Shape::set_GeometryText ( System::String  value)
protected

◆ set_GeometryTextFont()

void Aspose::Slides::Shape::set_GeometryTextFont ( System::String  value)
protected

◆ set_Height()

void Aspose::Slides::Shape::set_Height ( float  value)
virtual

Sets the height of the shape. Write float.

Returned value is always defined (is not float.NaN). Assigned value must be defined (not float.NaN). You can set undefined values for RawFrame instance properties.

Implements Aspose::Slides::IShape.

◆ set_Hidden()

void Aspose::Slides::Shape::set_Hidden ( bool  value)
virtual

Determines whether the shape is hidden. Write bool.

Implements Aspose::Slides::IShape.

◆ set_HyperlinkClick()

void Aspose::Slides::Shape::set_HyperlinkClick ( System::SharedPtr< IHyperlink value)
virtual

Sets the hyperlink defined for mouse click. Write IHyperlink.

Implements Aspose::Slides::IHyperlinkContainer.

◆ set_HyperlinkMouseOver()

void Aspose::Slides::Shape::set_HyperlinkMouseOver ( System::SharedPtr< IHyperlink value)
virtual

Sets the hyperlink defined for mouse over. Write IHyperlink.

Implements Aspose::Slides::IHyperlinkContainer.

◆ set_IsScalingProcess()

void Aspose::Slides::Shape::set_IsScalingProcess ( bool  value)
protected

Determins whether scaling process is actual or not

◆ set_Name()

virtual void Aspose::Slides::Shape::set_Name ( System::String  value)
virtual

Sets the name of a shape. Must be not null. Use empty string value if needed. Write System::String.

Implements Aspose::Slides::IShape.

◆ set_RawFrame()

void Aspose::Slides::Shape::set_RawFrame ( System::SharedPtr< IShapeFrame value)
virtual

Sets the raw shape frame's properties. Write IShapeFrame.

Code that attempts to assign undefined frame to IShape.Frame doesn't make sence in general case (particulary in case when parent GroupShape is multiple nested into other GroupShape-s). For example: {code}IShape shape = ...; shape.Frame = new ShapeFrame(float.NaN, float.NaN, float.NaN, float.NaN, NullableBool.NotDefined, NullableBool.NotDefined, float.NaN);{code} or {code}slide.Shapes.AddAutoShape(ShapeType.RoundCornerRectangle, float.NaN, float.NaN, float.NaN, float.NaN);{code} Such code can lead to unclear situations. So restrictions had been added for using undefined values for IShape.Frame. Values of x, y, width, height, flipH, flipV and rotationAngle must be defined (not float.NaN or NullableBool.NotDefined). Example code above now throws ArgumentException exception. This applies to these use cases: {code}IShape shape = ...; shape.Frame = ...; // cannot be undefined

IShapeCollection shapes = ...; // x, y, width, height parameters cannot be float.NaN: { shapes.AddAudioFrameCD(...); shapes.AddAudioFrameEmbedded(...); shapes.AddAudioFrameLinked(...); shapes.AddAutoShape(...); shapes.AddChart(...); shapes.AddConnector(...); shapes.AddOleObjectFrame(...); shapes.AddPictureFrame(...); shapes.AddSmartArt(...); shapes.AddTable(...); shapes.AddVideoFrame(...); shapes.InsertAudioFrameEmbedded(...); shapes.InsertAudioFrameLinked(...); shapes.InsertAutoShape(...); shapes.InsertChart(...); shapes.InsertConnector(...); shapes.InsertOleObjectFrame(...); shapes.InsertPictureFrame(...); shapes.InsertTable(...); shapes.InsertVideoFrame(...); }{code}

But IShape.RawFrame frame properties can be undefined. This make sence when shape is linked to placeholder. Then undefined shape frame values is overridden from the parent placeholder shape. If there is no parent placeholder shape for that shape then that shape uses default values when it evaluates effective frame based on its IShape.RawFrame. Default values are 0 and NullableBool.False for x, y, width, height, flipH, flipV and rotationAngle. For example: {code}IShape shape = ...; // shape is linked to placeholder shape.RawFrame = new ShapeFrame(float.NaN, float.NaN, 100, float.NaN, NullableBool.NotDefined, NullableBool.NotDefined, 0); // now shape inherits x, y, height, flipH, flipV values form placeholder and overrides width=100 and rotationAngle=0.{code}

Implements Aspose::Slides::IShape.

◆ set_Rotation()

void Aspose::Slides::Shape::set_Rotation ( float  value)
virtual

Sets the number of degrees the specified shape is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Write float.

Returned value is always defined (is not float.NaN). Assigned value must be defined (not float.NaN). You can set undefined values for RawFrame instance properties.

Implements Aspose::Slides::IShape.

◆ set_ShapeLock()

void Aspose::Slides::Shape::set_ShapeLock ( System::SharedPtr< IBaseShapeLock value)
protected

Returns shape's locks. Read-only IBaseShapeLock.

◆ set_Transform2DInternal()

void Aspose::Slides::Shape::set_Transform2DInternal ( System::SharedPtr< PresentationML::Transform2D >  value)
protected

◆ set_Unprocessed()

void Aspose::Slides::Shape::set_Unprocessed ( bool  value)
protected

Determines whether shape will be serialized in XML.

◆ set_Width()

void Aspose::Slides::Shape::set_Width ( float  value)
virtual

Sets the width of the shape. Write float.

Returned value is always defined (is not float.NaN). Assigned value must be defined (not float.NaN). You can set undefined values for RawFrame instance properties.

Implements Aspose::Slides::IShape.

◆ set_X()

void Aspose::Slides::Shape::set_X ( float  value)
virtual

Sets the x-coordinate of the upper-left corner of the shape. Write float.

Returned value is always defined (is not float.NaN). Assigned value must be defined (not float.NaN). You can set undefined values for RawFrame instance properties.

Implements Aspose::Slides::IShape.

◆ set_Y()

void Aspose::Slides::Shape::set_Y ( float  value)
virtual

Sets the y-coordinate of the upper-left corner of the shape. Write float.

Returned value is always defined (is not float.NaN). Assigned value must be defined (not float.NaN). You can set undefined values for RawFrame instance properties.

Implements Aspose::Slides::IShape.

◆ SetEffectFormat()

void Aspose::Slides::Shape::SetEffectFormat ( System::SharedPtr< Aspose::Slides::EffectFormat effectFormat)
protected

◆ SetLineFormatRawRef()

void Aspose::Slides::Shape::SetLineFormatRawRef ( System::SharedPtr< Aspose::Slides::LineFormat lineFormat)
protected

◆ SetParent()

void Aspose::Slides::Shape::SetParent ( System::SharedPtr< IDOMObject parentImmediate)
protected

◆ SetPlaceholder()

void Aspose::Slides::Shape::SetPlaceholder ( Orientation  orientation,
PlaceholderSize  size,
PlaceholderType  type,
uint32_t  index,
bool  hasCustomPrompt 
)
protected

Defines this shape as a placeholder.

◆ SetRawFrameImpl()

virtual void Aspose::Slides::Shape::SetRawFrameImpl ( System::SharedPtr< PresentationML::Transform2D >  value)
protectedvirtual

◆ SetShapeId()

void Aspose::Slides::Shape::SetShapeId ( uint32_t  id)
protected

Initialize Shape ID once. If call this method more then one time it raize exception.

◆ SetSlideSpaceFrame()

void Aspose::Slides::Shape::SetSlideSpaceFrame ( System::SharedPtr< ShapeFrame value)
protected

◆ SetUniqueId()

void Aspose::Slides::Shape::SetUniqueId ( System::String  value)
protected

Tries to sets shape unique id value. If value is not uint then generates new unique value. If value is uint and presentation already contains other shape with this value, then will be generated new unique value.

Parameters
valueValue to set.

◆ ShapeSizeUpdated()

virtual void Aspose::Slides::Shape::ShapeSizeUpdated ( )
protectedvirtual

◆ SlideSpaceToRaw()

System::SharedPtr<PresentationML::Transform2D> Aspose::Slides::Shape::SlideSpaceToRaw ( System::SharedPtr< ShapeFrame value)
protected

◆ WriteAsSvg() [1/2]

void Aspose::Slides::Shape::WriteAsSvg ( System::SharedPtr< System::IO::Stream stream)
virtual

Saves content of Shape as SVG file.

Parameters
streamTarget stream

Implements Aspose::Slides::IShape.

◆ WriteAsSvg() [2/2]

void Aspose::Slides::Shape::WriteAsSvg ( System::SharedPtr< System::IO::Stream stream,
System::SharedPtr< Export::ISVGOptions svgOptions 
)
virtual

Saves content of Shape as SVG file.

Parameters
streamTarget stream
svgOptionsSVG generation options

Implements Aspose::Slides::IShape.

◆ ZOrder()

virtual void Aspose::Slides::Shape::ZOrder ( ZOrderCmd  cmd)
protectedvirtual

Moves the shape in front of or behind other shapes in the collection (that is, changes the shape's position in the z-order).

Parameters
cmdSpecifies where to move the specified shape relative to the other shapes. See ZOrderCmd.