File

projects/wms-framework/src/lib/models/controls/layouts/TileConstraints.ts

Description

Interface of tile constraints.

Implements

ITileConstraints

Index

Properties

Properties

HorizontalAlignment
Type : HorizontalAlignment
Default value : HorizontalAlignment.Left

Horizontal alignment.

Margin
Type : any
Default value : null

Margin of the tile.

MaxHeight
Type : number
Default value : 0

Maximum height of the tile.

MaxWidth
Type : number
Default value : 0

Maximum width of the tile.

MinHeight
Type : number
Default value : 0

Minimum height of the tile.

MinWidth
Type : number
Default value : 0

Minimum width of the tile.

PreferredHeight
Type : number
Default value : 0

Preferred height of the tile.

PreferredWidth
Type : number
Default value : 0

Preferred width of the tile.

VerticalAlignment
Type : VerticalAlignment
Default value : VerticalAlignment.Top

Vertical alignment of the tile.

import { HorizontalAlignment, VerticalAlignment } from '../ContainerEnums';

/**
 * Interface of tile constraints.
 *
 * @export
 * @interface ITileConstraints
 * @wInterface Infragistics.Controls.Layouts.ITileConstraints
 */
export interface ITileConstraints {
  /**
   * Horizontal alignment.
   *
   * @type {HorizontalAlignment}
   * @memberof ITileConstraints
   */
  readonly HorizontalAlignment: HorizontalAlignment;

  /**
   * Margin
   *
   * @type {*}
   * @memberof ITileConstraints
   */
  readonly Margin: any;

  /**
   * Maximum height of the tile.
   *
   * @type {number}
   * @memberof ITileConstraints
   */
  readonly MaxHeight: number;

  /**
   * Maximum width of the tile.
   *
   * @type {number}
   * @memberof ITileConstraints
   */
  readonly MaxWidth: number;

  /**
   * Minimum height of the tile.
   *
   * @type {number}
   * @memberof ITileConstraints
   */
  readonly MinHeight: number;

  /**
   * Minimum height of the tile.
   *
   * @type {number}
   * @memberof ITileConstraints
   */
  readonly MinWidth: number;

  /**
   * Preferred height of the tile.
   *
   * @type {number}
   * @memberof ITileConstraints
   */
  readonly PreferredHeight: number;

  /**
   * Preferred width of the tile.
   *
   * @type {number}
   * @memberof ITileConstraints
   */
  readonly PreferredWidth: number;

  /**
   * Vertical alignment of the tile.
   *
   * @type {VerticalAlignment}
   * @memberof ITileConstraints
   */
  readonly VerticalAlignment: VerticalAlignment;
}

/**
 * Interface of tile constraints.
 *
 * @export
 * @class TileConstraints
 * @wType Infragistics.Controls.Layouts.TileConstraints
 */
export class TileConstraints implements ITileConstraints {
  /**
   * Horizontal alignment.
   *
   * @type {HorizontalAlignment}
   * @memberof TileConstraints
   */
  HorizontalAlignment: HorizontalAlignment = HorizontalAlignment.Left;

  /**
   * Margin of the tile.
   *
   * @type {*}
   * @memberof TileConstraints
   */
  Margin: any = null;

  /**
   * Maximum height of the tile.
   *
   * @type {number}
   * @memberof TileConstraints
   */
  MaxHeight: number = 0;

  /**
   * Maximum width of the tile.
   *
   * @type {number}
   * @memberof TileConstraints
   */
  MaxWidth: number = 0;

  /**
   * Minimum height of the tile.
   *
   * @type {number}
   * @memberof TileConstraints
   */
  MinHeight: number = 0;

  /**
   * Minimum width of the tile.
   *
   * @type {number}
   * @memberof TileConstraints
   */
  MinWidth: number = 0;

  /**
   * Preferred height of the tile.
   *
   * @type {number}
   * @memberof TileConstraints
   */
  PreferredHeight: number = 0;

  /**
   * Preferred width of the tile.
   *
   * @type {number}
   * @memberof TileConstraints
   */
  PreferredWidth: number = 0;

  /**
   * Vertical alignment of the tile.
   *
   * @type {VerticalAlignment}
   * @memberof TileConstraints
   */
  VerticalAlignment: VerticalAlignment = VerticalAlignment.Top;
}

result-matching ""

    No results matching ""