Aspose::Words::Drawing::Stroke Class Reference

Detailed Description

Defines a stroke for a shape.

Use the Stroke property to access stroke properties of a shape. You do not create instances of the Stroke class directly.

See also
Aspose::Words::Drawing::Shape::get_Stroke
Examples

Shows how change stroke properties.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Create a new shape of type Rectangle
auto rectangle = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Rectangle);
// Change stroke properties
SharedPtr<Stroke> stroke = rectangle->get_Stroke();
stroke->set_On(true);
stroke->set_Weight(5);
stroke->set_Color(System::Drawing::Color::get_Red());
// Insert shape object
builder->InsertNode(rectangle);

#include <Aspose.Words.Cpp/Model/Drawing/Stroke.h>

+ Inheritance diagram for Aspose::Words::Drawing::Stroke:

Public Member Functions

Color get_Color ()
 Defines the color of a stroke. More...
 
Color get_Color2 ()
 Defines a second color for a stroke. More...
 
DashStyle get_DashStyle ()
 Specifies the dot and dash pattern for a stroke. More...
 
ArrowLength get_EndArrowLength ()
 Defines the arrowhead length for the end of a stroke. More...
 
ArrowType get_EndArrowType ()
 Defines the arrowhead for the end of a stroke. More...
 
ArrowWidth get_EndArrowWidth ()
 Defines the arrowhead width for the end of a stroke. More...
 
EndCap get_EndCap ()
 Defines the cap style for the end of a stroke. More...
 
ArrayPtr< uint8_t > get_ImageBytes ()
 Defines the image for a stroke image or pattern fill. More...
 
JoinStyle get_JoinStyle ()
 Defines the join style of a polyline. More...
 
ShapeLineStyle get_LineStyle ()
 Defines the line style of the stroke. More...
 
bool get_On ()
 Defines whether the path will be stroked. More...
 
double get_Opacity ()
 Defines the amount of transparency of a stroke. Valid range is from 0 to 1. More...
 
ArrowLength get_StartArrowLength ()
 Defines the arrowhead length for the start of a stroke. More...
 
ArrowType get_StartArrowType ()
 Defines the arrowhead for the start of a stroke. More...
 
ArrowWidth get_StartArrowWidth ()
 Defines the arrowhead width for the start of a stroke. More...
 
double get_Weight ()
 Defines the brush thickness that strokes the path of a shape in points. More...
 
virtual const TypeInfoGetType () const override
 
virtual bool Is (const TypeInfo &target) const override
 
void set_Color (Color value)
 Setter for get_Color. More...
 
void set_Color2 (Color value)
 Setter for get_Color2. More...
 
void set_DashStyle (DashStyle value)
 Setter for get_DashStyle. More...
 
void set_EndArrowLength (ArrowLength value)
 Setter for get_EndArrowLength. More...
 
void set_EndArrowType (ArrowType value)
 Setter for get_EndArrowType. More...
 
void set_EndArrowWidth (ArrowWidth value)
 Setter for get_EndArrowWidth. More...
 
void set_EndCap (EndCap value)
 Setter for get_EndCap. More...
 
void set_JoinStyle (JoinStyle value)
 Setter for get_JoinStyle. More...
 
void set_LineStyle (ShapeLineStyle value)
 Setter for get_LineStyle. More...
 
void set_On (bool value)
 Setter for get_On. More...
 
void set_Opacity (double value)
 Setter for get_Opacity. More...
 
void set_StartArrowLength (ArrowLength value)
 Setter for get_StartArrowLength. More...
 
void set_StartArrowType (ArrowType value)
 Setter for get_StartArrowType. More...
 
void set_StartArrowWidth (ArrowWidth value)
 Setter for get_StartArrowWidth. More...
 
void set_Weight (double value)
 Setter for get_Weight. More...
 
- Public Member Functions inherited from Object
ASPOSECPP_SHARED_API Object ()
 
ASPOSECPP_SHARED_API Object (Object const &x)
 
virtual ASPOSECPP_SHARED_API ~Object ()
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 
Detail::SmartPtrCounter * GetCounter ()
 
virtual ASPOSECPP_SHARED_API int GetHashCode () const
 
ASPOSECPP_SHARED_API void Lock ()
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 
Objectoperator= (Object const &x)
 
bool ReferenceEquals (String const &str, std::nullptr_t)
 
bool ReferenceEquals (String const &str1, String const &str2)
 
int RemovedSharedRefs (int count)
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 
int SharedCount () const
 
ObjectSharedRefAdded ()
 
int SharedRefRemovedSafe ()
 
virtual ASPOSECPP_SHARED_API String ToString () const
 
ASPOSECPP_SHARED_API void Unlock ()
 
Detail::SmartPtrCounter * WeakRefAdded ()
 
void WeakRefRemoved ()
 

Static Public Member Functions

static const TypeInfoType ()
 
- Static Public Member Functions inherited from Object
bool Equals (double const &objA, double const &objB)
 
bool Equals (float const &objA, float const &objB)
 
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 
static const TypeInfoType ()
 

Additional Inherited Members

- Public Types inherited from Object
typedef SmartPtr< Objectptr
 
typedef System::Details::SharedMembersType shared_members_type
 

Member Function Documentation

◆ get_Color()

System::Drawing::Color Aspose::Words::Drawing::Stroke::get_Color ( )

Defines the color of a stroke.

The default value is Black.

Examples

Shows to create a variety of shapes.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Draw a dotted horizontal half-transparent red line with an arrow on the left end and a diamond on the other
auto arrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
arrow->set_Width(200);
arrow->get_Stroke()->set_Color(System::Drawing::Color::get_Red());
arrow->get_Stroke()->set_StartArrowType(Aspose::Words::Drawing::ArrowType::Arrow);
arrow->get_Stroke()->set_StartArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_StartArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_EndArrowType(Aspose::Words::Drawing::ArrowType::Diamond);
arrow->get_Stroke()->set_EndArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_EndArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_DashStyle(Aspose::Words::Drawing::DashStyle::Dash);
arrow->get_Stroke()->set_Opacity(0.5);
ASSERT_EQ(Aspose::Words::Drawing::JoinStyle::Miter, arrow->get_Stroke()->get_JoinStyle());
builder->InsertNode(arrow);
// Draw a thick black diagonal line with rounded ends
auto line = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
line->set_Top(40);
line->set_Width(200);
line->set_Height(20);
line->set_StrokeWeight(5.0);
line->get_Stroke()->set_EndCap(Aspose::Words::Drawing::EndCap::Round);
builder->InsertNode(line);
// Draw an arrow with a green fill
auto filledInArrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrow->set_Width(200);
filledInArrow->set_Height(40);
filledInArrow->set_Top(100);
filledInArrow->get_Fill()->set_Color(System::Drawing::Color::get_Green());
filledInArrow->get_Fill()->set_On(true);
builder->InsertNode(filledInArrow);
// Draw an arrow filled in with the Aspose logo and flip its orientation
auto filledInArrowImg = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrowImg->set_Width(200);
filledInArrowImg->set_Height(40);
filledInArrowImg->set_Top(160);
filledInArrowImg->set_FlipOrientation(Aspose::Words::Drawing::FlipOrientation::Both);
{
auto webClient = MakeObject<System::Net::WebClient>();
ArrayPtr<uint8_t> imageBytes = webClient->DownloadData(AsposeLogoUrl);
{
auto stream = MakeObject<System::IO::MemoryStream>(imageBytes);
SharedPtr<System::Drawing::Image> image = System::Drawing::Image::FromStream(stream);
// When we flipped the orientation of our arrow, the image content was flipped too
// If we want it to be displayed the right side up, we have to reverse the arrow flip on the image
filledInArrowImg->get_ImageData()->SetImage(image);
filledInArrowImg->get_Stroke()->set_JoinStyle(Aspose::Words::Drawing::JoinStyle::Round);
builder->InsertNode(filledInArrowImg);
}
}
doc->Save(ArtifactsDir + u"Drawing.VariousShapes.docx");

◆ get_Color2()

System::Drawing::Color Aspose::Words::Drawing::Stroke::get_Color2 ( )

Defines a second color for a stroke.

The default value is White.

Examples

Shows how to process shape stroke features.

// Open a document which contains a rectangle with a thick, two-tone-patterned outline
auto doc = MakeObject<Document>(MyDir + u"Shape stroke pattern border.docx");
// Get the first shape's stroke
auto shape = System::DynamicCast<Aspose::Words::Drawing::Shape>(doc->GetChild(Aspose::Words::NodeType::Shape, 0, true));
SharedPtr<Stroke> s = shape->get_Stroke();
// Every stroke will have a Color attribute, but only strokes from older Word versions have a Color2 attribute,
// since the two-tone pattern line feature which requires the Color2 attribute is no longer supported
ASPOSE_ASSERT_EQ(System::Drawing::Color::FromArgb(255, 128, 0, 0), s->get_Color());
ASPOSE_ASSERT_EQ(System::Drawing::Color::FromArgb(255, 255, 255, 0), s->get_Color2());
// This attribute contains the image data for the pattern, which we can save to our local file system
ASSERT_FALSE(s->get_ImageBytes() == nullptr);
System::IO::File::WriteAllBytes(ArtifactsDir + u"Drawing.StrokePattern.png", s->get_ImageBytes());

◆ get_DashStyle()

Aspose::Words::Drawing::DashStyle Aspose::Words::Drawing::Stroke::get_DashStyle ( )

Specifies the dot and dash pattern for a stroke.

The default value is Solid.

Examples

Shows to create a variety of shapes.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Draw a dotted horizontal half-transparent red line with an arrow on the left end and a diamond on the other
auto arrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
arrow->set_Width(200);
arrow->get_Stroke()->set_Color(System::Drawing::Color::get_Red());
arrow->get_Stroke()->set_StartArrowType(Aspose::Words::Drawing::ArrowType::Arrow);
arrow->get_Stroke()->set_StartArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_StartArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_EndArrowType(Aspose::Words::Drawing::ArrowType::Diamond);
arrow->get_Stroke()->set_EndArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_EndArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_DashStyle(Aspose::Words::Drawing::DashStyle::Dash);
arrow->get_Stroke()->set_Opacity(0.5);
ASSERT_EQ(Aspose::Words::Drawing::JoinStyle::Miter, arrow->get_Stroke()->get_JoinStyle());
builder->InsertNode(arrow);
// Draw a thick black diagonal line with rounded ends
auto line = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
line->set_Top(40);
line->set_Width(200);
line->set_Height(20);
line->set_StrokeWeight(5.0);
line->get_Stroke()->set_EndCap(Aspose::Words::Drawing::EndCap::Round);
builder->InsertNode(line);
// Draw an arrow with a green fill
auto filledInArrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrow->set_Width(200);
filledInArrow->set_Height(40);
filledInArrow->set_Top(100);
filledInArrow->get_Fill()->set_Color(System::Drawing::Color::get_Green());
filledInArrow->get_Fill()->set_On(true);
builder->InsertNode(filledInArrow);
// Draw an arrow filled in with the Aspose logo and flip its orientation
auto filledInArrowImg = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrowImg->set_Width(200);
filledInArrowImg->set_Height(40);
filledInArrowImg->set_Top(160);
filledInArrowImg->set_FlipOrientation(Aspose::Words::Drawing::FlipOrientation::Both);
{
auto webClient = MakeObject<System::Net::WebClient>();
ArrayPtr<uint8_t> imageBytes = webClient->DownloadData(AsposeLogoUrl);
{
auto stream = MakeObject<System::IO::MemoryStream>(imageBytes);
SharedPtr<System::Drawing::Image> image = System::Drawing::Image::FromStream(stream);
// When we flipped the orientation of our arrow, the image content was flipped too
// If we want it to be displayed the right side up, we have to reverse the arrow flip on the image
filledInArrowImg->get_ImageData()->SetImage(image);
filledInArrowImg->get_Stroke()->set_JoinStyle(Aspose::Words::Drawing::JoinStyle::Round);
builder->InsertNode(filledInArrowImg);
}
}
doc->Save(ArtifactsDir + u"Drawing.VariousShapes.docx");

◆ get_EndArrowLength()

Aspose::Words::Drawing::ArrowLength Aspose::Words::Drawing::Stroke::get_EndArrowLength ( )

Defines the arrowhead length for the end of a stroke.

The default value is Medium.

Examples

Shows to create a variety of shapes.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Draw a dotted horizontal half-transparent red line with an arrow on the left end and a diamond on the other
auto arrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
arrow->set_Width(200);
arrow->get_Stroke()->set_Color(System::Drawing::Color::get_Red());
arrow->get_Stroke()->set_StartArrowType(Aspose::Words::Drawing::ArrowType::Arrow);
arrow->get_Stroke()->set_StartArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_StartArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_EndArrowType(Aspose::Words::Drawing::ArrowType::Diamond);
arrow->get_Stroke()->set_EndArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_EndArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_DashStyle(Aspose::Words::Drawing::DashStyle::Dash);
arrow->get_Stroke()->set_Opacity(0.5);
ASSERT_EQ(Aspose::Words::Drawing::JoinStyle::Miter, arrow->get_Stroke()->get_JoinStyle());
builder->InsertNode(arrow);
// Draw a thick black diagonal line with rounded ends
auto line = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
line->set_Top(40);
line->set_Width(200);
line->set_Height(20);
line->set_StrokeWeight(5.0);
line->get_Stroke()->set_EndCap(Aspose::Words::Drawing::EndCap::Round);
builder->InsertNode(line);
// Draw an arrow with a green fill
auto filledInArrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrow->set_Width(200);
filledInArrow->set_Height(40);
filledInArrow->set_Top(100);
filledInArrow->get_Fill()->set_Color(System::Drawing::Color::get_Green());
filledInArrow->get_Fill()->set_On(true);
builder->InsertNode(filledInArrow);
// Draw an arrow filled in with the Aspose logo and flip its orientation
auto filledInArrowImg = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrowImg->set_Width(200);
filledInArrowImg->set_Height(40);
filledInArrowImg->set_Top(160);
filledInArrowImg->set_FlipOrientation(Aspose::Words::Drawing::FlipOrientation::Both);
{
auto webClient = MakeObject<System::Net::WebClient>();
ArrayPtr<uint8_t> imageBytes = webClient->DownloadData(AsposeLogoUrl);
{
auto stream = MakeObject<System::IO::MemoryStream>(imageBytes);
SharedPtr<System::Drawing::Image> image = System::Drawing::Image::FromStream(stream);
// When we flipped the orientation of our arrow, the image content was flipped too
// If we want it to be displayed the right side up, we have to reverse the arrow flip on the image
filledInArrowImg->get_ImageData()->SetImage(image);
filledInArrowImg->get_Stroke()->set_JoinStyle(Aspose::Words::Drawing::JoinStyle::Round);
builder->InsertNode(filledInArrowImg);
}
}
doc->Save(ArtifactsDir + u"Drawing.VariousShapes.docx");

◆ get_EndArrowType()

Aspose::Words::Drawing::ArrowType Aspose::Words::Drawing::Stroke::get_EndArrowType ( )

Defines the arrowhead for the end of a stroke.

The default value is None.

Examples

Shows to create a variety of shapes.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Draw a dotted horizontal half-transparent red line with an arrow on the left end and a diamond on the other
auto arrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
arrow->set_Width(200);
arrow->get_Stroke()->set_Color(System::Drawing::Color::get_Red());
arrow->get_Stroke()->set_StartArrowType(Aspose::Words::Drawing::ArrowType::Arrow);
arrow->get_Stroke()->set_StartArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_StartArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_EndArrowType(Aspose::Words::Drawing::ArrowType::Diamond);
arrow->get_Stroke()->set_EndArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_EndArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_DashStyle(Aspose::Words::Drawing::DashStyle::Dash);
arrow->get_Stroke()->set_Opacity(0.5);
ASSERT_EQ(Aspose::Words::Drawing::JoinStyle::Miter, arrow->get_Stroke()->get_JoinStyle());
builder->InsertNode(arrow);
// Draw a thick black diagonal line with rounded ends
auto line = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
line->set_Top(40);
line->set_Width(200);
line->set_Height(20);
line->set_StrokeWeight(5.0);
line->get_Stroke()->set_EndCap(Aspose::Words::Drawing::EndCap::Round);
builder->InsertNode(line);
// Draw an arrow with a green fill
auto filledInArrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrow->set_Width(200);
filledInArrow->set_Height(40);
filledInArrow->set_Top(100);
filledInArrow->get_Fill()->set_Color(System::Drawing::Color::get_Green());
filledInArrow->get_Fill()->set_On(true);
builder->InsertNode(filledInArrow);
// Draw an arrow filled in with the Aspose logo and flip its orientation
auto filledInArrowImg = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrowImg->set_Width(200);
filledInArrowImg->set_Height(40);
filledInArrowImg->set_Top(160);
filledInArrowImg->set_FlipOrientation(Aspose::Words::Drawing::FlipOrientation::Both);
{
auto webClient = MakeObject<System::Net::WebClient>();
ArrayPtr<uint8_t> imageBytes = webClient->DownloadData(AsposeLogoUrl);
{
auto stream = MakeObject<System::IO::MemoryStream>(imageBytes);
SharedPtr<System::Drawing::Image> image = System::Drawing::Image::FromStream(stream);
// When we flipped the orientation of our arrow, the image content was flipped too
// If we want it to be displayed the right side up, we have to reverse the arrow flip on the image
filledInArrowImg->get_ImageData()->SetImage(image);
filledInArrowImg->get_Stroke()->set_JoinStyle(Aspose::Words::Drawing::JoinStyle::Round);
builder->InsertNode(filledInArrowImg);
}
}
doc->Save(ArtifactsDir + u"Drawing.VariousShapes.docx");

◆ get_EndArrowWidth()

Aspose::Words::Drawing::ArrowWidth Aspose::Words::Drawing::Stroke::get_EndArrowWidth ( )

Defines the arrowhead width for the end of a stroke.

The default value is Medium.

Examples

Shows to create a variety of shapes.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Draw a dotted horizontal half-transparent red line with an arrow on the left end and a diamond on the other
auto arrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
arrow->set_Width(200);
arrow->get_Stroke()->set_Color(System::Drawing::Color::get_Red());
arrow->get_Stroke()->set_StartArrowType(Aspose::Words::Drawing::ArrowType::Arrow);
arrow->get_Stroke()->set_StartArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_StartArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_EndArrowType(Aspose::Words::Drawing::ArrowType::Diamond);
arrow->get_Stroke()->set_EndArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_EndArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_DashStyle(Aspose::Words::Drawing::DashStyle::Dash);
arrow->get_Stroke()->set_Opacity(0.5);
ASSERT_EQ(Aspose::Words::Drawing::JoinStyle::Miter, arrow->get_Stroke()->get_JoinStyle());
builder->InsertNode(arrow);
// Draw a thick black diagonal line with rounded ends
auto line = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
line->set_Top(40);
line->set_Width(200);
line->set_Height(20);
line->set_StrokeWeight(5.0);
line->get_Stroke()->set_EndCap(Aspose::Words::Drawing::EndCap::Round);
builder->InsertNode(line);
// Draw an arrow with a green fill
auto filledInArrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrow->set_Width(200);
filledInArrow->set_Height(40);
filledInArrow->set_Top(100);
filledInArrow->get_Fill()->set_Color(System::Drawing::Color::get_Green());
filledInArrow->get_Fill()->set_On(true);
builder->InsertNode(filledInArrow);
// Draw an arrow filled in with the Aspose logo and flip its orientation
auto filledInArrowImg = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrowImg->set_Width(200);
filledInArrowImg->set_Height(40);
filledInArrowImg->set_Top(160);
filledInArrowImg->set_FlipOrientation(Aspose::Words::Drawing::FlipOrientation::Both);
{
auto webClient = MakeObject<System::Net::WebClient>();
ArrayPtr<uint8_t> imageBytes = webClient->DownloadData(AsposeLogoUrl);
{
auto stream = MakeObject<System::IO::MemoryStream>(imageBytes);
SharedPtr<System::Drawing::Image> image = System::Drawing::Image::FromStream(stream);
// When we flipped the orientation of our arrow, the image content was flipped too
// If we want it to be displayed the right side up, we have to reverse the arrow flip on the image
filledInArrowImg->get_ImageData()->SetImage(image);
filledInArrowImg->get_Stroke()->set_JoinStyle(Aspose::Words::Drawing::JoinStyle::Round);
builder->InsertNode(filledInArrowImg);
}
}
doc->Save(ArtifactsDir + u"Drawing.VariousShapes.docx");

◆ get_EndCap()

Aspose::Words::Drawing::EndCap Aspose::Words::Drawing::Stroke::get_EndCap ( )

Defines the cap style for the end of a stroke.

The default value is Flat.

Examples

Shows to create a variety of shapes.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Draw a dotted horizontal half-transparent red line with an arrow on the left end and a diamond on the other
auto arrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
arrow->set_Width(200);
arrow->get_Stroke()->set_Color(System::Drawing::Color::get_Red());
arrow->get_Stroke()->set_StartArrowType(Aspose::Words::Drawing::ArrowType::Arrow);
arrow->get_Stroke()->set_StartArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_StartArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_EndArrowType(Aspose::Words::Drawing::ArrowType::Diamond);
arrow->get_Stroke()->set_EndArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_EndArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_DashStyle(Aspose::Words::Drawing::DashStyle::Dash);
arrow->get_Stroke()->set_Opacity(0.5);
ASSERT_EQ(Aspose::Words::Drawing::JoinStyle::Miter, arrow->get_Stroke()->get_JoinStyle());
builder->InsertNode(arrow);
// Draw a thick black diagonal line with rounded ends
auto line = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
line->set_Top(40);
line->set_Width(200);
line->set_Height(20);
line->set_StrokeWeight(5.0);
line->get_Stroke()->set_EndCap(Aspose::Words::Drawing::EndCap::Round);
builder->InsertNode(line);
// Draw an arrow with a green fill
auto filledInArrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrow->set_Width(200);
filledInArrow->set_Height(40);
filledInArrow->set_Top(100);
filledInArrow->get_Fill()->set_Color(System::Drawing::Color::get_Green());
filledInArrow->get_Fill()->set_On(true);
builder->InsertNode(filledInArrow);
// Draw an arrow filled in with the Aspose logo and flip its orientation
auto filledInArrowImg = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrowImg->set_Width(200);
filledInArrowImg->set_Height(40);
filledInArrowImg->set_Top(160);
filledInArrowImg->set_FlipOrientation(Aspose::Words::Drawing::FlipOrientation::Both);
{
auto webClient = MakeObject<System::Net::WebClient>();
ArrayPtr<uint8_t> imageBytes = webClient->DownloadData(AsposeLogoUrl);
{
auto stream = MakeObject<System::IO::MemoryStream>(imageBytes);
SharedPtr<System::Drawing::Image> image = System::Drawing::Image::FromStream(stream);
// When we flipped the orientation of our arrow, the image content was flipped too
// If we want it to be displayed the right side up, we have to reverse the arrow flip on the image
filledInArrowImg->get_ImageData()->SetImage(image);
filledInArrowImg->get_Stroke()->set_JoinStyle(Aspose::Words::Drawing::JoinStyle::Round);
builder->InsertNode(filledInArrowImg);
}
}
doc->Save(ArtifactsDir + u"Drawing.VariousShapes.docx");

◆ get_ImageBytes()

System::ArrayPtr<uint8_t> Aspose::Words::Drawing::Stroke::get_ImageBytes ( )

Defines the image for a stroke image or pattern fill.

Examples

Shows how to process shape stroke features.

// Open a document which contains a rectangle with a thick, two-tone-patterned outline
auto doc = MakeObject<Document>(MyDir + u"Shape stroke pattern border.docx");
// Get the first shape's stroke
auto shape = System::DynamicCast<Aspose::Words::Drawing::Shape>(doc->GetChild(Aspose::Words::NodeType::Shape, 0, true));
SharedPtr<Stroke> s = shape->get_Stroke();
// Every stroke will have a Color attribute, but only strokes from older Word versions have a Color2 attribute,
// since the two-tone pattern line feature which requires the Color2 attribute is no longer supported
ASPOSE_ASSERT_EQ(System::Drawing::Color::FromArgb(255, 128, 0, 0), s->get_Color());
ASPOSE_ASSERT_EQ(System::Drawing::Color::FromArgb(255, 255, 255, 0), s->get_Color2());
// This attribute contains the image data for the pattern, which we can save to our local file system
ASSERT_FALSE(s->get_ImageBytes() == nullptr);
System::IO::File::WriteAllBytes(ArtifactsDir + u"Drawing.StrokePattern.png", s->get_ImageBytes());

◆ get_JoinStyle()

Aspose::Words::Drawing::JoinStyle Aspose::Words::Drawing::Stroke::get_JoinStyle ( )

Defines the join style of a polyline.

The default value is Round.

Examples

Shows how change stroke properties.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Create a new shape of type Rectangle
auto rectangle = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Rectangle);
// Change stroke properties
SharedPtr<Stroke> stroke = rectangle->get_Stroke();
stroke->set_On(true);
stroke->set_Weight(5);
stroke->set_Color(System::Drawing::Color::get_Red());
// Insert shape object
builder->InsertNode(rectangle);

◆ get_LineStyle()

Aspose::Words::Drawing::ShapeLineStyle Aspose::Words::Drawing::Stroke::get_LineStyle ( )

Defines the line style of the stroke.

The default value is Single.

Examples

Shows how change stroke properties.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Create a new shape of type Rectangle
auto rectangle = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Rectangle);
// Change stroke properties
SharedPtr<Stroke> stroke = rectangle->get_Stroke();
stroke->set_On(true);
stroke->set_Weight(5);
stroke->set_Color(System::Drawing::Color::get_Red());
// Insert shape object
builder->InsertNode(rectangle);

◆ get_On()

bool Aspose::Words::Drawing::Stroke::get_On ( )

Defines whether the path will be stroked.

The default value is true.

Examples

Shows how change stroke properties.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Create a new shape of type Rectangle
auto rectangle = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Rectangle);
// Change stroke properties
SharedPtr<Stroke> stroke = rectangle->get_Stroke();
stroke->set_On(true);
stroke->set_Weight(5);
stroke->set_Color(System::Drawing::Color::get_Red());
// Insert shape object
builder->InsertNode(rectangle);

◆ get_Opacity()

double Aspose::Words::Drawing::Stroke::get_Opacity ( )

Defines the amount of transparency of a stroke. Valid range is from 0 to 1.

The default value is 1.

Examples

Shows to create a variety of shapes.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Draw a dotted horizontal half-transparent red line with an arrow on the left end and a diamond on the other
auto arrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
arrow->set_Width(200);
arrow->get_Stroke()->set_Color(System::Drawing::Color::get_Red());
arrow->get_Stroke()->set_StartArrowType(Aspose::Words::Drawing::ArrowType::Arrow);
arrow->get_Stroke()->set_StartArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_StartArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_EndArrowType(Aspose::Words::Drawing::ArrowType::Diamond);
arrow->get_Stroke()->set_EndArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_EndArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_DashStyle(Aspose::Words::Drawing::DashStyle::Dash);
arrow->get_Stroke()->set_Opacity(0.5);
ASSERT_EQ(Aspose::Words::Drawing::JoinStyle::Miter, arrow->get_Stroke()->get_JoinStyle());
builder->InsertNode(arrow);
// Draw a thick black diagonal line with rounded ends
auto line = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
line->set_Top(40);
line->set_Width(200);
line->set_Height(20);
line->set_StrokeWeight(5.0);
line->get_Stroke()->set_EndCap(Aspose::Words::Drawing::EndCap::Round);
builder->InsertNode(line);
// Draw an arrow with a green fill
auto filledInArrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrow->set_Width(200);
filledInArrow->set_Height(40);
filledInArrow->set_Top(100);
filledInArrow->get_Fill()->set_Color(System::Drawing::Color::get_Green());
filledInArrow->get_Fill()->set_On(true);
builder->InsertNode(filledInArrow);
// Draw an arrow filled in with the Aspose logo and flip its orientation
auto filledInArrowImg = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrowImg->set_Width(200);
filledInArrowImg->set_Height(40);
filledInArrowImg->set_Top(160);
filledInArrowImg->set_FlipOrientation(Aspose::Words::Drawing::FlipOrientation::Both);
{
auto webClient = MakeObject<System::Net::WebClient>();
ArrayPtr<uint8_t> imageBytes = webClient->DownloadData(AsposeLogoUrl);
{
auto stream = MakeObject<System::IO::MemoryStream>(imageBytes);
SharedPtr<System::Drawing::Image> image = System::Drawing::Image::FromStream(stream);
// When we flipped the orientation of our arrow, the image content was flipped too
// If we want it to be displayed the right side up, we have to reverse the arrow flip on the image
filledInArrowImg->get_ImageData()->SetImage(image);
filledInArrowImg->get_Stroke()->set_JoinStyle(Aspose::Words::Drawing::JoinStyle::Round);
builder->InsertNode(filledInArrowImg);
}
}
doc->Save(ArtifactsDir + u"Drawing.VariousShapes.docx");

◆ get_StartArrowLength()

Aspose::Words::Drawing::ArrowLength Aspose::Words::Drawing::Stroke::get_StartArrowLength ( )

Defines the arrowhead length for the start of a stroke.

The default value is Medium.

Examples

Shows to create a variety of shapes.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Draw a dotted horizontal half-transparent red line with an arrow on the left end and a diamond on the other
auto arrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
arrow->set_Width(200);
arrow->get_Stroke()->set_Color(System::Drawing::Color::get_Red());
arrow->get_Stroke()->set_StartArrowType(Aspose::Words::Drawing::ArrowType::Arrow);
arrow->get_Stroke()->set_StartArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_StartArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_EndArrowType(Aspose::Words::Drawing::ArrowType::Diamond);
arrow->get_Stroke()->set_EndArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_EndArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_DashStyle(Aspose::Words::Drawing::DashStyle::Dash);
arrow->get_Stroke()->set_Opacity(0.5);
ASSERT_EQ(Aspose::Words::Drawing::JoinStyle::Miter, arrow->get_Stroke()->get_JoinStyle());
builder->InsertNode(arrow);
// Draw a thick black diagonal line with rounded ends
auto line = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
line->set_Top(40);
line->set_Width(200);
line->set_Height(20);
line->set_StrokeWeight(5.0);
line->get_Stroke()->set_EndCap(Aspose::Words::Drawing::EndCap::Round);
builder->InsertNode(line);
// Draw an arrow with a green fill
auto filledInArrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrow->set_Width(200);
filledInArrow->set_Height(40);
filledInArrow->set_Top(100);
filledInArrow->get_Fill()->set_Color(System::Drawing::Color::get_Green());
filledInArrow->get_Fill()->set_On(true);
builder->InsertNode(filledInArrow);
// Draw an arrow filled in with the Aspose logo and flip its orientation
auto filledInArrowImg = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrowImg->set_Width(200);
filledInArrowImg->set_Height(40);
filledInArrowImg->set_Top(160);
filledInArrowImg->set_FlipOrientation(Aspose::Words::Drawing::FlipOrientation::Both);
{
auto webClient = MakeObject<System::Net::WebClient>();
ArrayPtr<uint8_t> imageBytes = webClient->DownloadData(AsposeLogoUrl);
{
auto stream = MakeObject<System::IO::MemoryStream>(imageBytes);
SharedPtr<System::Drawing::Image> image = System::Drawing::Image::FromStream(stream);
// When we flipped the orientation of our arrow, the image content was flipped too
// If we want it to be displayed the right side up, we have to reverse the arrow flip on the image
filledInArrowImg->get_ImageData()->SetImage(image);
filledInArrowImg->get_Stroke()->set_JoinStyle(Aspose::Words::Drawing::JoinStyle::Round);
builder->InsertNode(filledInArrowImg);
}
}
doc->Save(ArtifactsDir + u"Drawing.VariousShapes.docx");

◆ get_StartArrowType()

Aspose::Words::Drawing::ArrowType Aspose::Words::Drawing::Stroke::get_StartArrowType ( )

Defines the arrowhead for the start of a stroke.

The default value is None.

Examples

Shows to create a variety of shapes.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Draw a dotted horizontal half-transparent red line with an arrow on the left end and a diamond on the other
auto arrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
arrow->set_Width(200);
arrow->get_Stroke()->set_Color(System::Drawing::Color::get_Red());
arrow->get_Stroke()->set_StartArrowType(Aspose::Words::Drawing::ArrowType::Arrow);
arrow->get_Stroke()->set_StartArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_StartArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_EndArrowType(Aspose::Words::Drawing::ArrowType::Diamond);
arrow->get_Stroke()->set_EndArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_EndArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_DashStyle(Aspose::Words::Drawing::DashStyle::Dash);
arrow->get_Stroke()->set_Opacity(0.5);
ASSERT_EQ(Aspose::Words::Drawing::JoinStyle::Miter, arrow->get_Stroke()->get_JoinStyle());
builder->InsertNode(arrow);
// Draw a thick black diagonal line with rounded ends
auto line = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
line->set_Top(40);
line->set_Width(200);
line->set_Height(20);
line->set_StrokeWeight(5.0);
line->get_Stroke()->set_EndCap(Aspose::Words::Drawing::EndCap::Round);
builder->InsertNode(line);
// Draw an arrow with a green fill
auto filledInArrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrow->set_Width(200);
filledInArrow->set_Height(40);
filledInArrow->set_Top(100);
filledInArrow->get_Fill()->set_Color(System::Drawing::Color::get_Green());
filledInArrow->get_Fill()->set_On(true);
builder->InsertNode(filledInArrow);
// Draw an arrow filled in with the Aspose logo and flip its orientation
auto filledInArrowImg = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrowImg->set_Width(200);
filledInArrowImg->set_Height(40);
filledInArrowImg->set_Top(160);
filledInArrowImg->set_FlipOrientation(Aspose::Words::Drawing::FlipOrientation::Both);
{
auto webClient = MakeObject<System::Net::WebClient>();
ArrayPtr<uint8_t> imageBytes = webClient->DownloadData(AsposeLogoUrl);
{
auto stream = MakeObject<System::IO::MemoryStream>(imageBytes);
SharedPtr<System::Drawing::Image> image = System::Drawing::Image::FromStream(stream);
// When we flipped the orientation of our arrow, the image content was flipped too
// If we want it to be displayed the right side up, we have to reverse the arrow flip on the image
filledInArrowImg->get_ImageData()->SetImage(image);
filledInArrowImg->get_Stroke()->set_JoinStyle(Aspose::Words::Drawing::JoinStyle::Round);
builder->InsertNode(filledInArrowImg);
}
}
doc->Save(ArtifactsDir + u"Drawing.VariousShapes.docx");

◆ get_StartArrowWidth()

Aspose::Words::Drawing::ArrowWidth Aspose::Words::Drawing::Stroke::get_StartArrowWidth ( )

Defines the arrowhead width for the start of a stroke.

The default value is Medium.

Examples

Shows to create a variety of shapes.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Draw a dotted horizontal half-transparent red line with an arrow on the left end and a diamond on the other
auto arrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
arrow->set_Width(200);
arrow->get_Stroke()->set_Color(System::Drawing::Color::get_Red());
arrow->get_Stroke()->set_StartArrowType(Aspose::Words::Drawing::ArrowType::Arrow);
arrow->get_Stroke()->set_StartArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_StartArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_EndArrowType(Aspose::Words::Drawing::ArrowType::Diamond);
arrow->get_Stroke()->set_EndArrowLength(Aspose::Words::Drawing::ArrowLength::Long);
arrow->get_Stroke()->set_EndArrowWidth(Aspose::Words::Drawing::ArrowWidth::Wide);
arrow->get_Stroke()->set_DashStyle(Aspose::Words::Drawing::DashStyle::Dash);
arrow->get_Stroke()->set_Opacity(0.5);
ASSERT_EQ(Aspose::Words::Drawing::JoinStyle::Miter, arrow->get_Stroke()->get_JoinStyle());
builder->InsertNode(arrow);
// Draw a thick black diagonal line with rounded ends
auto line = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Line);
line->set_Top(40);
line->set_Width(200);
line->set_Height(20);
line->set_StrokeWeight(5.0);
line->get_Stroke()->set_EndCap(Aspose::Words::Drawing::EndCap::Round);
builder->InsertNode(line);
// Draw an arrow with a green fill
auto filledInArrow = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrow->set_Width(200);
filledInArrow->set_Height(40);
filledInArrow->set_Top(100);
filledInArrow->get_Fill()->set_Color(System::Drawing::Color::get_Green());
filledInArrow->get_Fill()->set_On(true);
builder->InsertNode(filledInArrow);
// Draw an arrow filled in with the Aspose logo and flip its orientation
auto filledInArrowImg = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Arrow);
filledInArrowImg->set_Width(200);
filledInArrowImg->set_Height(40);
filledInArrowImg->set_Top(160);
filledInArrowImg->set_FlipOrientation(Aspose::Words::Drawing::FlipOrientation::Both);
{
auto webClient = MakeObject<System::Net::WebClient>();
ArrayPtr<uint8_t> imageBytes = webClient->DownloadData(AsposeLogoUrl);
{
auto stream = MakeObject<System::IO::MemoryStream>(imageBytes);
SharedPtr<System::Drawing::Image> image = System::Drawing::Image::FromStream(stream);
// When we flipped the orientation of our arrow, the image content was flipped too
// If we want it to be displayed the right side up, we have to reverse the arrow flip on the image
filledInArrowImg->get_ImageData()->SetImage(image);
filledInArrowImg->get_Stroke()->set_JoinStyle(Aspose::Words::Drawing::JoinStyle::Round);
builder->InsertNode(filledInArrowImg);
}
}
doc->Save(ArtifactsDir + u"Drawing.VariousShapes.docx");

◆ get_Weight()

double Aspose::Words::Drawing::Stroke::get_Weight ( )

Defines the brush thickness that strokes the path of a shape in points.

The default value is 0.75.

Examples

Shows how change stroke properties.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Create a new shape of type Rectangle
auto rectangle = MakeObject<Shape>(doc, Aspose::Words::Drawing::ShapeType::Rectangle);
// Change stroke properties
SharedPtr<Stroke> stroke = rectangle->get_Stroke();
stroke->set_On(true);
stroke->set_Weight(5);
stroke->set_Color(System::Drawing::Color::get_Red());
// Insert shape object
builder->InsertNode(rectangle);

◆ GetType()

virtual const System::TypeInfo& Aspose::Words::Drawing::Stroke::GetType ( ) const
overridevirtual

Reimplemented from System::Object.

◆ Is()

virtual bool Aspose::Words::Drawing::Stroke::Is ( const System::TypeInfo target) const
overridevirtual

Reimplemented from System::Object.

◆ set_Color()

void Aspose::Words::Drawing::Stroke::set_Color ( System::Drawing::Color  value)

◆ set_Color2()

void Aspose::Words::Drawing::Stroke::set_Color2 ( System::Drawing::Color  value)

◆ set_DashStyle()

void Aspose::Words::Drawing::Stroke::set_DashStyle ( Aspose::Words::Drawing::DashStyle  value)

◆ set_EndArrowLength()

void Aspose::Words::Drawing::Stroke::set_EndArrowLength ( Aspose::Words::Drawing::ArrowLength  value)

◆ set_EndArrowType()

void Aspose::Words::Drawing::Stroke::set_EndArrowType ( Aspose::Words::Drawing::ArrowType  value)

◆ set_EndArrowWidth()

void Aspose::Words::Drawing::Stroke::set_EndArrowWidth ( Aspose::Words::Drawing::ArrowWidth  value)

◆ set_EndCap()

void Aspose::Words::Drawing::Stroke::set_EndCap ( Aspose::Words::Drawing::EndCap  value)

◆ set_JoinStyle()

void Aspose::Words::Drawing::Stroke::set_JoinStyle ( Aspose::Words::Drawing::JoinStyle  value)

◆ set_LineStyle()

void Aspose::Words::Drawing::Stroke::set_LineStyle ( Aspose::Words::Drawing::ShapeLineStyle  value)

◆ set_On()

void Aspose::Words::Drawing::Stroke::set_On ( bool  value)

◆ set_Opacity()

void Aspose::Words::Drawing::Stroke::set_Opacity ( double  value)

◆ set_StartArrowLength()

void Aspose::Words::Drawing::Stroke::set_StartArrowLength ( Aspose::Words::Drawing::ArrowLength  value)

◆ set_StartArrowType()

void Aspose::Words::Drawing::Stroke::set_StartArrowType ( Aspose::Words::Drawing::ArrowType  value)

◆ set_StartArrowWidth()

void Aspose::Words::Drawing::Stroke::set_StartArrowWidth ( Aspose::Words::Drawing::ArrowWidth  value)

◆ set_Weight()

void Aspose::Words::Drawing::Stroke::set_Weight ( double  value)

◆ Type()

static const System::TypeInfo& Aspose::Words::Drawing::Stroke::Type ( )
static
@ Arrow
The arrow is a solid triangle.
@ Rectangle
@ Shape
A drawing object, such as an OfficeArt shape, image or an OLE object. A Shape node can contain Paragr...
@ Triple
Three lines, thin, thick, thin.
static ASPOSECPP_SHARED_API void WriteAllBytes(const String &path, const ArrayPtr< uint8_t > &bytes)
@ Wide
@ Square
Square protrudes by half line width.
static ASPOSECPP_SHARED_API SharedPtr< Image > FromStream(const SharedPtr< System::IO::Stream > &stream, bool use_embedded_color_management=false, bool validate_image_data=1)
@ Both
Flip along both the y- and x-axis.
@ Round
Draw an arc between the two edges.
@ Dash
Dash style.
@ Arrow
@ RotateNoneFlipXY
static ASPOSECPP_SHARED_API Color FromArgb(int argb)
@ Diamond
The line end is a solid diamond.
@ Line
static ASPOSECPP_SHARED_API Color get_Green()
@ Miter
Extend edges until they join.
@ Long
@ ShortDashDotDot
System dash style.
static ASPOSECPP_SHARED_API Color get_Red()
@ Round
Rounded ends.