Background Color:
 
Background Pattern:
Reset
Search
Home Recent Changes Show All Pages

Position Style Item

Not Rated Yet

Scryber.Styles.PDFPositionStyle : PDFStyleItem

Not inherited

The position style item defines how components should be laid-out on pages. Most components support all the attributes within this item.
If position mode is not specified but there are X or Y values for the position then the mode will switch default to Relative. Otherwise the mode will default to block. A number of components explicitly specify a mode when creating their default style - Panel and Image are block, and TextBase is inline, but these can be altered with styles. The Span component is a panel that overrides the get base style to specify inline.
This style is not inherited so block elements can be within inline components.

Value Type Description
PositionMode (@mode) PositionMode enumeration Specifies how components should be positioned on the page and relative to its siblings and parent. The available options are...
  • Absolute - the component will be explicitly positioned relative to the current page top left.
  • Relative - the component will be explicitly positioned relative to its containers top left.
  • Block - The component will be positioned in it's own block with no content either side of it. Margins and Padding will be applied to the overall layout.
  • Inline - There will be no positioning of the component itself and any content will continue on the same line. Background, Border, Padding, Margins will not be used when laying out or rendering this component.
X (@x) PDFUnit The horizontal position of the component relative to either the page or parent container (Absolute or Relative position mode). If mode is not specified, but an X value is present, then the mode will default to Relative positioning.
Y (@y) PDFUnit The vertical position of the component relative to either the page or parent container (Absolute or Relative position mode). If mode is not specified, but a Y value is present, then the mode will default to Relative positioning.
Width (@width) PDFUnit The explicit width of a component. This is an absolute - if inner content extends beyond the available width, then the boundaries of the component will still retain the expressed width.
Height (@height) PDFUnit The explicit height of a component. This is an absolute - if inner content extends beyond the available height, then the boundaries of the component will still retain the expressed height.
HAlign (@h-align) HorizontalAlignment enumeration Describes how the content within this component should be arranged horizontally. Unlike HTML CSS, this value has an effect on the contents within the component, NOT the component itself.
Supported values are Left, Right and Center.
VAlign (@v-align) VerticalAlignment enumeration Describes how the content within this component should be arranged vertically. Unlike HTML CSS, this value has an effect on the contents within the component, NOT the component itself.
Supported values are Top, Bottom and Middle.
FullWidth (@full-width) Boolean If true, then the component will expand to fill the width of it's container rather than being the minimum required width to fit it's contents. If and explicit width is set, this takes precedence.
By default it is false - the panel (PDFPanel) will not extend to full width, but the sub-class PDFDiv marks the full width as true, so this will fill the available width.

Next: Scryber Badge Style Item

Back: Out of the box Style Items



  Rating
Rate This Page: Poor Great   |  Rate Content |
Average rating:  No Ratings Yet   
Number of Ratings : 0
  Comments
Add Comment
No Comments Yet