Represents format of a line. More...

Inherits Aspose::Slides::PVIObject, and Aspose::Slides::ILineFormat.

Public Member Functions

bool get_IsFormatNotDefined ()
 Returns true if line format is not defined (as just created, default). Read-only bool. More...
 
System::SharedPtr< ILineFillFormatget_FillFormat ()
 Returns the fill format of a line. Read-only ILineFillFormat. More...
 
double get_Width ()
 Returns the width of a line. Read double. More...
 
void set_Width (double value)
 Sets the width of a line. Write double. More...
 
LineDashStyle get_DashStyle ()
 Returns the line dash style. Read LineDashStyle. More...
 
void set_DashStyle (LineDashStyle value)
 Sets the line dash style. Write LineDashStyle. More...
 
System::ArrayPtr< float > get_CustomDashPattern ()
 Returns the custom dash pattern. Read T:float[]. More...
 
void set_CustomDashPattern (System::ArrayPtr< float > value)
 Sets the custom dash pattern. Write T:float[]. More...
 
LineCapStyle get_CapStyle ()
 Returns the line cap style. Read LineCapStyle. More...
 
void set_CapStyle (LineCapStyle value)
 Sets the line cap style. Write LineCapStyle. More...
 
LineStyle get_Style ()
 Returns the line style. Read LineStyle. More...
 
void set_Style (LineStyle value)
 Sets the line style. Write LineStyle. More...
 
LineAlignment get_Alignment ()
 Returns the line alignment. Read LineAlignment. More...
 
void set_Alignment (LineAlignment value)
 Sets the line alignment. Write LineAlignment. More...
 
LineJoinStyle get_JoinStyle ()
 Returns the lines join style. Read LineJoinStyle. More...
 
void set_JoinStyle (LineJoinStyle value)
 Sets the lines join style. Write LineJoinStyle. More...
 
float get_MiterLimit ()
 Returns the miter limit of a line. Read float. More...
 
void set_MiterLimit (float value)
 Sets the miter limit of a line. Write float. More...
 
LineArrowheadStyle get_BeginArrowheadStyle ()
 Returns the arrowhead style at the beginning of a line. Read LineArrowheadStyle. More...
 
void set_BeginArrowheadStyle (LineArrowheadStyle value)
 Sets the arrowhead style at the beginning of a line. Write LineArrowheadStyle. More...
 
LineArrowheadStyle get_EndArrowheadStyle ()
 Returns the arrowhead style at the end of a line. Read LineArrowheadStyle. More...
 
void set_EndArrowheadStyle (LineArrowheadStyle value)
 Sets the arrowhead style at the end of a line. Write LineArrowheadStyle. More...
 
LineArrowheadWidth get_BeginArrowheadWidth ()
 Returns the arrowhead width at the beginning of a line. Read LineArrowheadWidth. More...
 
void set_BeginArrowheadWidth (LineArrowheadWidth value)
 Sets the arrowhead width at the beginning of a line. Write LineArrowheadWidth. More...
 
LineArrowheadWidth get_EndArrowheadWidth ()
 Returns the arrowhead width at the end of a line. Read LineArrowheadWidth. More...
 
void set_EndArrowheadWidth (LineArrowheadWidth value)
 Sets the arrowhead width at the end of a line. Write LineArrowheadWidth. More...
 
LineArrowheadLength get_BeginArrowheadLength ()
 Returns the arrowhead length at the beginning of a line. Read LineArrowheadLength. More...
 
void set_BeginArrowheadLength (LineArrowheadLength value)
 Sets the arrowhead length at the beginning of a line. Write LineArrowheadLength. More...
 
LineArrowheadLength get_EndArrowheadLength ()
 Returns the arrowhead length at the end of a line. Read LineArrowheadLength. More...
 
void set_EndArrowheadLength (LineArrowheadLength value)
 Sets the arrowhead length at the end of a line. Write LineArrowheadLength. More...
 
bool Equals (System::SharedPtr< ILineFormat > lineFormat)
 Determines whether the two LineFormat instances are equal. More...
 
System::SharedPtr< ILineFormatEffectiveDataGetEffective ()
 Gets effective line formatting data with the inheritance applied. More...
 
- Public Member Functions inherited from Aspose::Slides::PVIObject
virtual bool Equals (System::SharedPtr< System::Object > obj)
 Compares with specified object. More...
 
virtual int32_t GetHashCode () const
 Returns hash code. 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

System::SharedPtr< LineFormatImpl > get_RealObject ()
 
bool get_MetroBlobRequired ()
 Shows if saving the shape containing this object to ppt requires GroupShapeMetroBlob record to save all shape's properties correctly More...
 
 LineFormat (System::SharedPtr< IDOMObject > parentImmediate)
 
virtual void CreateChildObjects ()
 
virtual System::SharedPtr< System::ObjectCreateRealObject ()
 
void CopyDataFrom (System::SharedPtr< ILineFormat > source)
 
void NoEventCopyDataFrom (System::SharedPtr< ILineFormat > source)
 
void CopyDataFrom (System::SharedPtr< ILineFormatEffectiveData > source)
 
System::SharedPtr< LineFormatClone ()
 
void Reset ()
 Sets all properties to NotDefined state. More...
 
System::SharedPtr< LineFormatEffectiveData > GetEffectiveInternal ()
 
void SetParent (System::SharedPtr< Shape > parentImmediate)
 
void ClearEffective ()
 
- Protected Member Functions inherited from Aspose::Slides::PVIObject
System::SharedPtr< ObjectWrapper > get_Wrapper () const
 
System::SharedPtr< IDOMObjectget_Parent_Immediate ()
 Returns Parent_Immediate object. Read-only IDOMObject. More...
 
void set_Parent_Immediate (System::SharedPtr< IDOMObject > value)
 
virtual uint32_t get_Version ()
 Version. Read-only uint32_t. More...
 
System::SharedPtr< IPresentationComponentget_Parent_IPresentationComponent ()
 Returns parent IPresentationComponent. Read-only IPresentationComponent. More...
 
System::SharedPtr< ISlideComponentget_Parent_ISlideComponent ()
 
System::SharedPtr< BaseSlideget_Slide ()
 
System::SharedPtr< Aspose::Slides::Presentationget_Presentation ()
 
 PVIObject (System::SharedPtr< IDOMObject > parentImmediate)
 
void Reset_Parent_IPresentationComponent ()
 

Protected Attributes

System::Event< void(System::SharedPtr< LineFormat >)> LineFormatChanged
 

Static Protected Attributes

static const double DEFAULT_WIDTH_VALUE
 

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 format of a line.

Constructor & Destructor Documentation

◆ LineFormat()

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

Member Function Documentation

◆ ClearEffective()

void Aspose::Slides::LineFormat::ClearEffective ( )
protected

◆ Clone()

System::SharedPtr<LineFormat> Aspose::Slides::LineFormat::Clone ( )
protected

◆ CopyDataFrom() [1/2]

void Aspose::Slides::LineFormat::CopyDataFrom ( System::SharedPtr< ILineFormat source)
protected

◆ CopyDataFrom() [2/2]

void Aspose::Slides::LineFormat::CopyDataFrom ( System::SharedPtr< ILineFormatEffectiveData source)
protected

◆ CreateChildObjects()

virtual void Aspose::Slides::LineFormat::CreateChildObjects ( )
protectedvirtual

◆ CreateRealObject()

virtual System::SharedPtr<System::Object> Aspose::Slides::LineFormat::CreateRealObject ( )
protectedvirtual

◆ Equals()

bool Aspose::Slides::LineFormat::Equals ( System::SharedPtr< ILineFormat lineFormat)
virtual

Determines whether the two LineFormat instances are equal.

Parameters
lineFormatThe LineFormat to compare with the current LineFormat.
Returns
true if the specified LineFormat is equal to the current LineFormat; otherwise, false.

Implements Aspose::Slides::ILineFormat.

◆ get_Alignment()

LineAlignment Aspose::Slides::LineFormat::get_Alignment ( )
virtual

Returns the line alignment. Read LineAlignment.

Implements Aspose::Slides::ILineFormat.

◆ get_BeginArrowheadLength()

LineArrowheadLength Aspose::Slides::LineFormat::get_BeginArrowheadLength ( )
virtual

Returns the arrowhead length at the beginning of a line. Read LineArrowheadLength.

Implements Aspose::Slides::ILineFormat.

◆ get_BeginArrowheadStyle()

LineArrowheadStyle Aspose::Slides::LineFormat::get_BeginArrowheadStyle ( )
virtual

Returns the arrowhead style at the beginning of a line. Read LineArrowheadStyle.

Implements Aspose::Slides::ILineFormat.

◆ get_BeginArrowheadWidth()

LineArrowheadWidth Aspose::Slides::LineFormat::get_BeginArrowheadWidth ( )
virtual

Returns the arrowhead width at the beginning of a line. Read LineArrowheadWidth.

Implements Aspose::Slides::ILineFormat.

◆ get_CapStyle()

LineCapStyle Aspose::Slides::LineFormat::get_CapStyle ( )
virtual

Returns the line cap style. Read LineCapStyle.

Implements Aspose::Slides::ILineFormat.

◆ get_CustomDashPattern()

System::ArrayPtr<float> Aspose::Slides::LineFormat::get_CustomDashPattern ( )
virtual

Returns the custom dash pattern. Read T:float[].

Implements Aspose::Slides::ILineFormat.

◆ get_DashStyle()

LineDashStyle Aspose::Slides::LineFormat::get_DashStyle ( )
virtual

Returns the line dash style. Read LineDashStyle.

Implements Aspose::Slides::ILineFormat.

◆ get_EndArrowheadLength()

LineArrowheadLength Aspose::Slides::LineFormat::get_EndArrowheadLength ( )
virtual

Returns the arrowhead length at the end of a line. Read LineArrowheadLength.

Implements Aspose::Slides::ILineFormat.

◆ get_EndArrowheadStyle()

LineArrowheadStyle Aspose::Slides::LineFormat::get_EndArrowheadStyle ( )
virtual

Returns the arrowhead style at the end of a line. Read LineArrowheadStyle.

Implements Aspose::Slides::ILineFormat.

◆ get_EndArrowheadWidth()

LineArrowheadWidth Aspose::Slides::LineFormat::get_EndArrowheadWidth ( )
virtual

Returns the arrowhead width at the end of a line. Read LineArrowheadWidth.

Implements Aspose::Slides::ILineFormat.

◆ get_FillFormat()

System::SharedPtr<ILineFillFormat> Aspose::Slides::LineFormat::get_FillFormat ( )
virtual

Returns the fill format of a line. Read-only ILineFillFormat.

Implements Aspose::Slides::ILineFormat.

◆ get_IsFormatNotDefined()

bool Aspose::Slides::LineFormat::get_IsFormatNotDefined ( )
virtual

Returns true if line format is not defined (as just created, default). Read-only bool.

Implements Aspose::Slides::ILineFormat.

◆ get_JoinStyle()

LineJoinStyle Aspose::Slides::LineFormat::get_JoinStyle ( )
virtual

Returns the lines join style. Read LineJoinStyle.

Implements Aspose::Slides::ILineFormat.

◆ get_MetroBlobRequired()

bool Aspose::Slides::LineFormat::get_MetroBlobRequired ( )
protected

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

◆ get_MiterLimit()

float Aspose::Slides::LineFormat::get_MiterLimit ( )
virtual

Returns the miter limit of a line. Read float.

Implements Aspose::Slides::ILineFormat.

◆ get_RealObject()

System::SharedPtr<LineFormatImpl> Aspose::Slides::LineFormat::get_RealObject ( )
protected

◆ get_Style()

LineStyle Aspose::Slides::LineFormat::get_Style ( )
virtual

Returns the line style. Read LineStyle.

Implements Aspose::Slides::ILineFormat.

◆ get_Width()

double Aspose::Slides::LineFormat::get_Width ( )
virtual

Returns the width of a line. Read double.

Implements Aspose::Slides::ILineFormat.

◆ GetEffective()

System::SharedPtr<ILineFormatEffectiveData> Aspose::Slides::LineFormat::GetEffective ( )
virtual

Gets effective line formatting data with the inheritance applied.

Returns
A ILineFormatEffectiveData.

This example demonstrates getting shape's effective line format properties.

auto pres = MakeObject<Presentation>(u"MyPresentation.pptx");
auto effectiveLineFormat = pres->get_Slides()->idx_get(0)->get_Shapes()->idx_get(0)->get_LineFormat()->GetEffective();
Console::WriteLine(String(u"Style: ") + ObjectExt::ToString(effectiveLineFormat->get_Style()));
Console::WriteLine(String(u"Width: ") + effectiveLineFormat->get_Width());
Console::WriteLine(String(u"Fill type: ") + ObjectExt::ToString(effectiveLineFormat->get_FillFormat()->get_FillType()));

Implements Aspose::Slides::ILineFormat.

◆ GetEffectiveInternal()

System::SharedPtr<LineFormatEffectiveData> Aspose::Slides::LineFormat::GetEffectiveInternal ( )
protected

◆ NoEventCopyDataFrom()

void Aspose::Slides::LineFormat::NoEventCopyDataFrom ( System::SharedPtr< ILineFormat source)
protected

◆ Reset()

void Aspose::Slides::LineFormat::Reset ( )
protected

Sets all properties to NotDefined state.

◆ set_Alignment()

void Aspose::Slides::LineFormat::set_Alignment ( LineAlignment  value)
virtual

Sets the line alignment. Write LineAlignment.

Implements Aspose::Slides::ILineFormat.

◆ set_BeginArrowheadLength()

void Aspose::Slides::LineFormat::set_BeginArrowheadLength ( LineArrowheadLength  value)
virtual

Sets the arrowhead length at the beginning of a line. Write LineArrowheadLength.

Implements Aspose::Slides::ILineFormat.

◆ set_BeginArrowheadStyle()

void Aspose::Slides::LineFormat::set_BeginArrowheadStyle ( LineArrowheadStyle  value)
virtual

Sets the arrowhead style at the beginning of a line. Write LineArrowheadStyle.

Implements Aspose::Slides::ILineFormat.

◆ set_BeginArrowheadWidth()

void Aspose::Slides::LineFormat::set_BeginArrowheadWidth ( LineArrowheadWidth  value)
virtual

Sets the arrowhead width at the beginning of a line. Write LineArrowheadWidth.

Implements Aspose::Slides::ILineFormat.

◆ set_CapStyle()

void Aspose::Slides::LineFormat::set_CapStyle ( LineCapStyle  value)
virtual

Sets the line cap style. Write LineCapStyle.

Implements Aspose::Slides::ILineFormat.

◆ set_CustomDashPattern()

void Aspose::Slides::LineFormat::set_CustomDashPattern ( System::ArrayPtr< float >  value)
virtual

Sets the custom dash pattern. Write T:float[].

Implements Aspose::Slides::ILineFormat.

◆ set_DashStyle()

void Aspose::Slides::LineFormat::set_DashStyle ( LineDashStyle  value)
virtual

Sets the line dash style. Write LineDashStyle.

Implements Aspose::Slides::ILineFormat.

◆ set_EndArrowheadLength()

void Aspose::Slides::LineFormat::set_EndArrowheadLength ( LineArrowheadLength  value)
virtual

Sets the arrowhead length at the end of a line. Write LineArrowheadLength.

Implements Aspose::Slides::ILineFormat.

◆ set_EndArrowheadStyle()

void Aspose::Slides::LineFormat::set_EndArrowheadStyle ( LineArrowheadStyle  value)
virtual

Sets the arrowhead style at the end of a line. Write LineArrowheadStyle.

Implements Aspose::Slides::ILineFormat.

◆ set_EndArrowheadWidth()

void Aspose::Slides::LineFormat::set_EndArrowheadWidth ( LineArrowheadWidth  value)
virtual

Sets the arrowhead width at the end of a line. Write LineArrowheadWidth.

Implements Aspose::Slides::ILineFormat.

◆ set_JoinStyle()

void Aspose::Slides::LineFormat::set_JoinStyle ( LineJoinStyle  value)
virtual

Sets the lines join style. Write LineJoinStyle.

Implements Aspose::Slides::ILineFormat.

◆ set_MiterLimit()

void Aspose::Slides::LineFormat::set_MiterLimit ( float  value)
virtual

Sets the miter limit of a line. Write float.

Implements Aspose::Slides::ILineFormat.

◆ set_Style()

void Aspose::Slides::LineFormat::set_Style ( LineStyle  value)
virtual

Sets the line style. Write LineStyle.

Implements Aspose::Slides::ILineFormat.

◆ set_Width()

void Aspose::Slides::LineFormat::set_Width ( double  value)
virtual

Sets the width of a line. Write double.

Implements Aspose::Slides::ILineFormat.

◆ SetParent()

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

Member Data Documentation

◆ DEFAULT_WIDTH_VALUE

const double Aspose::Slides::LineFormat::DEFAULT_WIDTH_VALUE
staticprotected

◆ LineFormatChanged

System::Event<void(System::SharedPtr<LineFormat>)> Aspose::Slides::LineFormat::LineFormatChanged
protected