## Shading::get_BackgroundPatternThemeColor method


Gets or sets the background pattern theme color in the applied color scheme that is associated with this [Shading](../) object.

```cpp
Aspose::Words::Themes::ThemeColor Aspose::Words::Shading::get_BackgroundPatternThemeColor()
```


## Examples



Shows how to set foreground and background colors for shading texture. 
```cpp
auto doc = System::MakeObject<Aspose::Words::Document>();
auto builder = System::MakeObject<Aspose::Words::DocumentBuilder>(doc);

System::SharedPtr<Aspose::Words::Shading> shading = doc->get_FirstSection()->get_Body()->get_FirstParagraph()->get_ParagraphFormat()->get_Shading();
shading->set_Texture(TextureIndex::Texture12Pt5Percent);
shading->set_ForegroundPatternThemeColor(ThemeColor::Dark1);
shading->set_BackgroundPatternThemeColor(ThemeColor::Dark2);

shading->set_ForegroundTintAndShade(0.5);
shading->set_BackgroundTintAndShade(-0.2);

builder->get_Font()->get_Border()->set_Color(System::Drawing::Color::get_Green());
builder->get_Font()->get_Border()->set_LineWidth(2.5);
builder->get_Font()->get_Border()->set_LineStyle(LineStyle::DashDotStroker);

builder->Writeln(u"Foreground and background pattern colors for shading texture.");

doc->Save(get_ArtifactsDir() + u"Font.ForegroundAndBackground.docx");
```

## See Also

* Enum [ThemeColor](../../../aspose.words.themes/themecolor/)
* Class [Shading](../)
* Namespace [Aspose::Words](../../)
* Library [Aspose.Words for C++](../../../)
