ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

PrintInfo.VarRowHeight Property

Gets or sets the height of printed rows.

[Visual Basic]

Public Property VarRowHeight As PrintInfo+RowHeightEnum

[C#]

public PrintInfo+RowHeightEnum VarRowHeight {get;set;}

[Delphi]

public property VarRowHeight: PrintInfo+RowHeightEnum read get_VarRowHeight write set_VarRowHeight;

Example

The following code sets the height of printed rows to fit all the data:

·      Visual Basic

       Me.C1TrueDBGrid1.PrintInfo.VarRowHeight = C1.Win.C1TrueDBGrid.PrintInfo.RowHeightEnum.StretchToFit

       ' Invoke print preview.

       Me.C1TrueDBGrid1.PrintInfo.PrintPreview()

·      C#

       this.c1TrueDBGrid1.PrintInfo.VarRowHeight = C1.Win.C1TrueDBGrid.PrintInfo.RowHeightEnum.StretchToFit;

       // Invoke print preview.

       this.c1TrueDBGrid1.PrintInfo.PrintPreview();

·      Delphi

       Self.C1TrueDBGrid1.PrintInfo.VarRowHeight := C1.Win.C1TrueDBGrid.PrintInfo.RowHeightEnum.StretchToFit;

       // Invoke print preview.

       Self.C1TrueDBGrid1.PrintInfo.PrintPreview;

See Also

PrintInfo Class | PrintInfo Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.