Aspose::Words::Drawing::Stroke::set_ForeTintAndShade method
Contents
[
Hide
]Stroke::set_ForeTintAndShade method
Sets a double value that lightens or darkens the stroke foreground color.
void Aspose::Words::Drawing::Stroke::set_ForeTintAndShade(double value)
Remarks
The allowed values are within the range from -1 (the darkest) to 1 (the lightest) for this property. Zero (0) is neutral. Attempting to set this property to a value less than -1 or more than 1 results in ArgumentOutOfRangeException.
Examples
Shows how to set fore theme color and tint and shade.
auto doc = System::MakeObject<Aspose::Words::Document>();
auto builder = System::MakeObject<Aspose::Words::DocumentBuilder>(doc);
System::SharedPtr<Aspose::Words::Drawing::Shape> shape = builder->InsertShape(ShapeType::TextBox, static_cast<double>(100), static_cast<double>(40));
System::SharedPtr<Aspose::Words::Drawing::Stroke> stroke = shape->get_Stroke();
stroke->set_ForeThemeColor(ThemeColor::Dark1);
stroke->set_ForeTintAndShade(0.5);
doc->Save(get_ArtifactsDir() + u"Shape.StrokeForeThemeColors.docx");
See Also
- Class Stroke
- Namespace Aspose::Words::Drawing
- Library Aspose.Words for C++