API Reference
OfficeImagePatternLayout
Describes a clipped image pattern with independently sized tiles and repeat steps in drawing coordinates.
Inheritance
- ValueType
- OfficeImagePatternLayout
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
- Method OfficeDrawing.AddImagePattern
- Constructor OfficeDrawingImagePattern.OfficeDrawingImagePattern
Constructors
public OfficeImagePatternLayout(OfficeImagePlacement area, OfficeImagePlacement tile, Boolean repeatX, Boolean repeatY) #Creates a pattern layout using the tile dimensions as repeat steps.
Parameters
- area OfficeIMO.Drawing.OfficeImagePlacement
- tile OfficeIMO.Drawing.OfficeImagePlacement
- repeatX System.Boolean
- repeatY System.Boolean
public OfficeImagePatternLayout(OfficeImagePlacement area, OfficeImagePlacement tile, Boolean repeatX = true, Boolean repeatY = true, Nullable<Double> horizontalStep = null, Nullable<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 System.Boolean = true
- repeatY System.Boolean = true
- horizontalStep System.Nullable{System.Double} = null
- verticalStep System.Nullable{System.Double} = null
Methods
public IReadOnlyList<OfficeImagePlacement> GetTilePlacements(Int32 maximumTileCount) #IReadOnlyList<OfficeImagePlacement>Returns all full tile placements intersecting the clipped area within an explicit safety limit.
Parameters
- maximumTileCount System.Int32
public OfficeImagePatternLayout Scale(Double scale) #OfficeImagePatternLayoutReturns a uniformly scaled pattern layout.
Parameters
- scale System.Double
public OfficeImagePatternLayout Translate(Double offsetX, Double offsetY) #OfficeImagePatternLayoutReturns a translated pattern layout.
Parameters
- offsetX System.Double
- offsetY System.Double
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
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 Boolean RepeatX { get; } #Whether the origin tile repeats horizontally.
public Boolean 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 Int64 EstimatedTileCount { get; } #Number of tiles intersecting the clipped area, saturated at MaxValue.