VegaRise.NET
Back to DOM

TileClass

Definition

Namespace
DOM.Styles
Assembly
DOM.dll

Describes tiling behavior for a fill or background region.

Remarks

provides parameters that control how a fill image or pattern is repeated and aligned inside a rectangular area. The horizontal and vertical ratios indicate the proportion of the source graphic to use for each tile, while the flip and alignment values control orientation and placement. Tile Tile settings are consumed by picture/texture fills.

Examples

csharp
1// 1. 1:1 tiling with no flip and top-left alignment
2var tile = new Tile
3{
4 HorizontalRatio = new Percentage(100),
5 VerticalRatio = new Percentage(100),
6 TileFlip = TileFlipValues.None,
7 Alignment = RectangleAlignmentValues.TopLeft
8};
9
csharp
1// 2. Half-size tiles with horizontal flip
2var tile = new Tile
3{
4 HorizontalRatio = new Percentage(50),
5 VerticalRatio = new Percentage(50),
6 TileFlip = TileFlipValues.Horizantal
7};
8
csharp
1// 3. Both-axis flip for a mirrored pattern
2var tile = new Tile
3{
4 HorizontalRatio = new Percentage(100),
5 VerticalRatio = new Percentage(100),
6 TileFlip = TileFlipValues.Both
7};
8
csharp
1// 4. Center-aligned tiles
2var tile = new Tile
3{
4 HorizontalRatio = new Percentage(75),
5 VerticalRatio = new Percentage(75),
6 Alignment = RectangleAlignmentValues.Center
7};
8
csharp
1// 5. Attach to a picture or texture fill
2var fill = new PictureOrTextureFill
3{
4 Picture = "pattern.png",
5 FillTile = new Tile { HorizontalRatio = new Percentage(50), VerticalRatio = new Percentage(50) }
6};
7

Properties

Gets or sets the alignment used to position the tiled content within the rectangle.

HorizontalRatioPercentage

Gets or sets the horizontal tiling ratio expressed as a . Percentage

Gets or sets the flip mode applied to each tile.

VerticalRatioPercentage

Gets or sets the vertical tiling ratio expressed as a . Percentage

VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in