Extended properties

The following properties are added to each control that is hosted on the same form as the windows from print helper component to determine how (and if) they print out:

properties.jpg
  • Print property - Whether this control should be printed or not - if this is set to false none of the other extended properties will have any effect
  • PrintMethod property - The print method determines how this control is printed on the form
  • BoundingRectangle property - The boundary rectangle to print it in (measured in printer units)
  • LeftBorder, RightBorder, TopBorder, BottomBorder (the border properties) - The pens to use (if any) to draw a border around the bounding rectangle
  • BackColour property - The colour to fill the bounding rectangle with
  • VerticalAlignment, HorizontalAlignment (the alignment properties) - How to align the text within the bounding rectangle.
  • Trimming property - How to trim the text if it does not fit in the bounding rectangle.

Multiple page printing related properties
Properties that apply for printing the control if the print method is "PrintAsText"
  • ForeColour property - The foreground colour to print the text in
  • PropertyToPrint property - specifies which property of the control to get the text from. This defaults to "Text" but can be changed to any property that the control class exposes. (Note that setting this property is case-sensitive)
  • PrintFont property - specifies the font (size and style) to use to print the control text. This allows you to use a different font for the on screen and on paper representations of the control
  • Trimming property - specifies how to format the text if it overflows the available space set in the BoundingRectangle property

Properties that apply for printing the control if the print method is "PrintAsImage"
Properties that apply for printing the control if the print method is "PrintAsOwnerDrawn"

Properties that apply to printing a rich text box control
Properties that apply to printing a datagrid or DataGridView control

Events

Last edited Jan 26, 2010 at 12:21 PM by Merrion, version 8

Comments

No comments yet.