Represents a grid row, a subcontainer element that is being used in Grid element to group cells together. It can only be added into Grid element and its styling is limited (only properties which can be inherited from plus background color value affect the appearance of the grid cells).
Links created using [!:CrossReference] or [!:LinkUri] and pointing to/from GridRow elements are also not supported. This behavior can be easily workarounded by adding a link to inner elements.
Each element added to grid row is being treated as a separate cell, so if you need multiple elements to be placed inside the singe cell you may use a Section to group them together. If you need the cell to be spanned vertically or horizontally you may use RowSpan or ColSpan properties respectively.
Apitron.PDF.Kit.FlowLayoutContentElement
Apitron.PDF.Kit.FlowLayoutContainerElementContentElement
Apitron.PDF.Kit.FlowLayout.ContentGridRow
Namespace: Apitron.PDF.Kit.FlowLayout.Content
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
The GridRow type exposes the following members.
Name | Description | |
---|---|---|
GridRow |
Creates an empty GridRow using auto row height.
| |
GridRow(ContentElement) |
Creates a new instance of the GridRow using auto row height and a collection of elements for its columns.
| |
GridRow(Length) |
Creates an empty GridRow using given row height.
| |
GridRow(Length, ContentElement) |
Creates a new instance of the GridRow using given row height and a collection of elements for its columns.
|
Name | Description | |
---|---|---|
Align |
Gets or sets the text align.
(Inherited from ContentElement.) | |
Background |
Gets or sets the background color.
(Inherited from ContentElement.) | |
BackgroundImage |
Gets or sets the background image for the element.
The background of an element is the total size of the element, including padding (but not the margin and border).
By default, a background-image is placed at the top-left corner of an element, and repeated both vertically and horizontally.
(Inherited from ContentElement.) | |
BackgroundPosition |
Gets or sets the background position value for the element.
The background position property sets the starting position of a background image.
(Inherited from ContentElement.) | |
BackgroundRepeat |
Gets or sets the background repeat value for the element.
The background repeat property sets if/how a background image will be repeated. By default, a background image is repeated both vertically and horizontally.
(Inherited from ContentElement.) | |
Bookmark |
Gets or sets the bookmark.
(Inherited from ContentElement.) | |
Border |
Gets or sets the border around the element.
(Inherited from ContentElement.) | |
BorderBottom |
Gets or sets the bottom border.
(Inherited from ContentElement.) | |
BorderColor |
Gets or sets the color of the border.
(Inherited from ContentElement.) | |
BorderLeft |
Gets or sets the left border.
(Inherited from ContentElement.) | |
BorderRadius |
Gets or sets the border radius. Can be set using percentage value, in this case it's calculated using content width including padding as a base.
(Inherited from ContentElement.) | |
BorderRight |
Gets or sets the right border.
(Inherited from ContentElement.) | |
BorderTop |
Gets or sets the top border.
(Inherited from ContentElement.) | |
CellPadding |
Gets or sets the cell padding, affects only Grid elements.
(Inherited from ContentElement.) | |
CharacterSpacing |
Gets or sets the character spacing.
(Inherited from ContentElement.) | |
Class |
Gets or sets classes list this element belongs to, so it will match selectors for this class. Use space to separate classes from each other.
(Inherited from ContentElement.) | |
Clear |
Gets or sets the clear flag for the element indicating whether it should ignore floating elements (if any) and start a new line.
(Inherited from ContentElement.) | |
Color |
Gets or sets the foreground color for the element.
(Inherited from ContentElement.) | |
ColSpan |
Gets or sets the column span that this element takes. Affects element placed inside the Grid container.
(Inherited from ContentElement.) | |
Display |
Gets or sets the display setting for the element.
(Inherited from ContentElement.) | |
Float |
Gets or sets the value indicating that element can float.
(Inherited from ContentElement.) | |
Font |
Gets or sets the font for the element.
(Inherited from ContentElement.) | |
Height |
Gets or sets the height of the grid row element.
(Overrides ContentElementHeight.) | |
Id |
Gets or sets Id.
(Inherited from ContentElement.) | |
InnerBorder |
Gets or sets the inner border, affects only Grid elements.
(Inherited from ContentElement.) | |
InnerBorderColor |
Gets or sets the color of the inner border affects only Grid elements.
(Inherited from ContentElement.) | |
LineHeight |
Gets or sets the height of the line.
(Inherited from ContentElement.) | |
Link |
Gets or sets the link.
(Inherited from ContentElement.) | |
ListCounter |
Gets or sets the list counter.
(Inherited from ContentElement.) | |
ListMarker |
Gets or sets the list marker appearance.
(Inherited from ContentElement.) | |
ListMarkerPadding |
Gets or sets the list marker padding.
(Inherited from ContentElement.) | |
ListStyle |
Gets or sets the list style.
(Inherited from ContentElement.) | |
Margin |
Gets or sets the margin around the element.
(Inherited from ContentElement.) | |
Padding |
Gets or sets the padding.
(Inherited from ContentElement.) | |
RowSpan |
Gets or sets the row span that this element takes. Affects element placed inside the Grid container.
(Inherited from ContentElement.) | |
ScriptLevel |
Gets or sets the value used to create subscripting or superscripting effect. It defines the level of effect, zero can be used for normal scripting, positive values are for superscripting, negative for subscripting.
Affects textual elements.
(Inherited from ContentElement.) | |
StructureType |
Gets or sets the type of the logical structure.
(Inherited from ContentElement.) | |
Tag |
Gets or sets the tag for this element. It can be any object and can be used for any user-defined purpose.
(Inherited from ContentElement.) | |
TextDecoration |
Gets or sets the text decoration.
(Inherited from ContentElement.) | |
TextIndent |
Gets or sets the text indent.
(Inherited from ContentElement.) | |
TextRenderingMode |
Gets or sets the text rendering mode used to draw textual elements.
By default all text is being drawn using Fill setting.
(Inherited from ContentElement.) | |
VerticalAlign |
Gets or sets the vertical align.
(Inherited from ContentElement.) | |
Width |
Gets or sets the width of the element.
(Inherited from ContentElement.) | |
WordSpacing |
Gets or sets the word spacing.
(Inherited from ContentElement.) |
Name | Description | |
---|---|---|
Add |
Adds the specified element to the container.
(Inherited from ContainerElementT.) | |
AddItems |
Adds the specified elements to the container.
(Inherited from ContainerElementT.) | |
Clear |
Removes all elements from container.
(Inherited from ContainerElementT.) | |
Contains |
Determines whether the ICollectionT contains a specific value.
(Inherited from ContainerElementT.) | |
CopyTo |
Copies to.
(Inherited from ContainerElementT.) | |
Remove |
Removes the specified item.
(Inherited from ContainerElementT.) |
// add 2 cells into the row FlowDocument document = new FlowDocument(); Grid table = new Grid(Length.FromPercentage(8), Length.Auto); table.Add(new GridRow(new TextBlock("Date"), new TextBlock("Description"))); document.Add(table);