Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OfficeImagePatternLayout

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Base
ValueType
Modifiers
sealed

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.

Accepted by parameters 2

Constructors

OfficeImagePatternLayout 2 overloads
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 required
tile OfficeIMO.Drawing.OfficeImagePlacement required
repeatX bool required
repeatY bool required
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 required
tile OfficeIMO.Drawing.OfficeImagePlacement required
repeatX bool = true optional
repeatY bool = true optional
horizontalStep double? = null optional
verticalStep double? = null optional

Methods

public IReadOnlyList<OfficeImagePlacement> GetTilePlacements(int maximumTileCount) #

Returns all full tile placements intersecting the clipped area within an explicit safety limit.

Parameters

maximumTileCount int required

Returns

IReadOnlyList<OfficeImagePlacement>
public OfficeImagePatternLayout Scale(double scale) #

Returns a uniformly scaled pattern layout.

Parameters

scale double required
public OfficeImagePatternLayout Translate(double offsetX, double offsetY) #

Returns a translated pattern layout.

Parameters

offsetX double required
offsetY double required

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.