OfficeImagePatternLayout
OfficeIMO.Drawing
Describes a clipped image pattern with independently sized tiles and repeat steps in drawing coordinates.
Inheritance
- ValueType
- OfficeImagePatternLayout
Usage
Explore 5 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
Accepted by parameters 2
- Method OfficeDrawing.AddImagePattern
- Constructor OfficeDrawingImagePattern.OfficeDrawingImagePattern
Constructors
public OfficeImagePatternLayout(OfficeImagePlacement area, OfficeImagePlacement tile, bool repeatX, bool repeatY) #Creates a pattern layout using the tile dimensions as repeat steps.
Parameters
- area OfficeIMO.Drawing.OfficeImagePlacement
- tile OfficeIMO.Drawing.OfficeImagePlacement
- repeatX bool
- repeatY bool
public OfficeImagePatternLayout(OfficeImagePlacement area, OfficeImagePlacement tile, bool repeatX = true, bool repeatY = true, double? horizontalStep = null, double? verticalStep = null) #Creates a pattern layout from a paint area and one positioned tile.
Parameters
- area OfficeIMO.Drawing.OfficeImagePlacement
- tile OfficeIMO.Drawing.OfficeImagePlacement
- repeatX bool = true
- repeatY bool = true
- horizontalStep double? = null
- verticalStep double? = null
Methods
public IReadOnlyList<OfficeImagePlacement> GetTilePlacements(int maximumTileCount) #Returns all full tile placements intersecting the clipped area within an explicit safety limit.
Parameters
- maximumTileCount int
Returns
IReadOnlyList<OfficeImagePlacement>public OfficeImagePatternLayout Scale(double scale) #Returns a uniformly scaled pattern layout.
Parameters
- scale double
Returns
OfficeImagePatternLayoutpublic OfficeImagePatternLayout Translate(double offsetX, double offsetY) #Returns a translated pattern layout.
Parameters
- offsetX double
- offsetY double
Returns
OfficeImagePatternLayoutInherited Methods
Properties
public OfficeImagePlacement Area { get; } #Clipped destination area painted by the pattern.
public OfficeImagePlacement Tile { get; } #Position and size of the authored origin tile.
public bool RepeatX { get; } #Whether the origin tile repeats horizontally.
public bool RepeatY { get; } #Whether the origin tile repeats vertically.
public double HorizontalStep { get; } #Distance between horizontal tile origins.
public double VerticalStep { get; } #Distance between vertical tile origins.
public long EstimatedTileCount { get; } #Number of tiles intersecting the clipped area, saturated at long.MaxValue.