Options
Public/Protected
  • Public
  • Public/Protected
  • All
Menu

GoJS API 文档

Hierarchy

  • RowColumnDefinition

The RowColumnDefinition class describes constraints on a row or a column in a Panel of type Panel.Table. It also provides information about the actual layout after the Table Panel has been arranged.

Index

Constructors

constructor

Properties

actual : number

  • This read-only property returns the usable row height or column width, after arrangement, in local coordinates, that objects in this row or column can be arranged within. This does not include separatorPadding or separatorStrokeWidth, as total does.

    This value gives the row height if isRow is true; otherwise this gives the column width. The value is meaningless until after the Table Panel using this RowColumnDefinition has been arranged.

    see

    total, height, width, sizing

alignment : Spot

background : BrushLike

  • Gets or sets the background color for a particular row or column, which fills the entire span of the row or column, including any separatorPadding.

    The default value is null, which means nothing is drawn in the background of the row or column.

    see

    GraphObject.background

    since

    1.2

coversSeparators : boolean

  • Determines whether or not the background, if there is one, is in front of or behind the separators.

    The default value is false -- any background is drawn behind any separator lines.

    since

    1.2

height : number

  • Gets or sets the row height, in local coordinates. This describes the row height if isRow is true; otherwise this property is meaningless. The value must be non-negative and finite.

    The default value is NaN, which means this row will get a height that is just big enough to hold all of the objects in the row.

    Setting this value to a number will mean that all of the objects of this Panel in this row will be allocated that amount of row height. Whether an object in the row is actually arranged to have that height depends on whether the GraphObject.stretch stretches vertically.

    see

    width, minimum, maximum, sizing

index : number

isRow : boolean

  • This read-only property is true when this describes a row instead of a column in the panel. When this is true, the height, minimum, and maximum all describe the row height. Otherwise width and the other two properties describe the column width.

maximum : number

  • Gets or sets the maximum row height or column width, in local coordinates. The maximum describes the row height if isRow is true; otherwise this describes the column width.

    The value must be non-negative. The default value is Infinity. The arranged height of all objects in this row, or the arranged width of all objects in this column, will be no greater than this value.

    see

    width, height, minimum, sizing

minimum : number

  • Gets or sets the minimum row height or column width, in local coordinates. The minimum describes the row height if isRow is true; otherwise this describes the column width.

    The value must be non-negative and finite. The default value is zero. The arranged height of all objects in this row, or the arranged width of all objects in this column, will be no less than this value.

    see

    width, height, maximum, sizing

Read-only panel : Panel | null

  • This read-only property returns the Panel that this row or column definition is in.

position : number

separatorDashArray : Array<number>

separatorPadding : MarginLike

separatorStroke : BrushLike

separatorStrokeWidth : number

sizing : EnumValue

stretch : EnumValue

total : number

  • This read-only property returns the total arranged row height or column width, after arrangement, in local coordinates. This value gives the actual size plus the separatorPadding and separatorStrokeWidth.

    This value gives the vertical space occupied by the row if isRow is true; otherwise this gives the horizontal space occupied by the column. The value is meaningless until after the Table Panel using this RowColumnDefinition has been arranged.

    see

    actual, height, width, sizing

    since

    1.2

width : number

  • Gets or sets the column width, in local coordinates. The size describes the column width if isRow is false; otherwise this property is meaningless. The value must be non-negative and finite.

    The default value is NaN, which means this column will get a width that is just big enough to hold all of the objects in the column.

    Setting this value to a number will mean that all of the objects of this Panel in this column will be allocated that amount of column width. Whether an object in the column is actually arranged to have that width depends on whether the GraphObject.stretch stretches horizontally.

    see

    height, minimum, maximum, sizing

Methods

bind

  • Add a data-binding of a property on this object to a property on a data object.

    Parameters

    Returns void

Constants

Static Default : EnumValue

The default sizing, which resolves to RowColumnDefinition.None or else the Table Panel's rowSizing and columnSizing if present.

Static None : EnumValue

The default sizing if none is specified on the Table Panel's rowSizing and columnSizing.

Static ProportionalExtra : EnumValue

If a Table Panel is larger than all the rows then this sizing grants this row and any others with the same value the extra space, apportioned proportionally between them

加入 GoJS 交流群
GoJS 交流群 (769862113)