set_TileAlignment()

PictureFillFormat::set_TileAlignment(RectangleAlignment) method

Sets how the texture is aligned within the shape. This setting controls the starting point of the texture pattern and how it repeats across the shape. Write RectangleAlignment.

void Aspose::Slides::PictureFillFormat::set_TileAlignment(RectangleAlignment value) override

Remarks

Default is RectangleAlignment::TopLeft.

System::SharedPtr<Presentation> presentation = System::MakeObject<Presentation>(u"demo.pptx");

System::SharedPtr<ISlide> slide = presentation->get_Slide(0);

// Gets the picture fill format of the shape
System::SharedPtr<IPictureFillFormat> pictureFillFormat = slide->get_Shape(0)->get_FillFormat()->get_PictureFillFormat();

// Sets the picture fill mode to Tile
pictureFillFormat->set_PictureFillMode(Aspose::Slides::PictureFillMode::Tile);

// Sets the alignment for the tiling to the right bottom
pictureFillFormat->set_TileAlignment(Aspose::Slides::RectangleAlignment::BottomRight);

See Also