C# Class PurplePen.RectanglePositioner

ファイルを表示 Open project: petergolde/PurplePen Class Usage Examples

Private Properties

Property Type Description
FitsInCurrentColumn bool
PageSizeBigEnough bool
PlaceInCurrentColumn void
RemoveLastRectangle void
StartNewColumn void
StartNewPage void

Public Methods

Method Description
DrawPage ( Graphics g, int pageNumber ) : void
LayoutMultipleDescriptions ( IPrintableRectangle rectangles ) : void
LayoutOneDescriptionPage ( IPrintableRectangle rectangle ) : int
RectanglePositioner ( SizeF pageSize, float boxSize, float spacing ) : System

Private Methods

Method Description
FitsInCurrentColumn ( IPrintableRectangle rectangle, int startLine, int &numberLinesFit ) : bool
PageSizeBigEnough ( IPrintableRectangle rectangles ) : bool
PlaceInCurrentColumn ( IPrintableRectangle rectangle, int startLine, int countLines ) : void
RemoveLastRectangle ( ) : void
StartNewColumn ( ) : void
StartNewPage ( ) : void

Method Details

DrawPage() public method

public DrawPage ( Graphics g, int pageNumber ) : void
g System.Drawing.Graphics
pageNumber int
return void

LayoutMultipleDescriptions() public method

public LayoutMultipleDescriptions ( IPrintableRectangle rectangles ) : void
rectangles IPrintableRectangle
return void

LayoutOneDescriptionPage() public method

public LayoutOneDescriptionPage ( IPrintableRectangle rectangle ) : int
rectangle IPrintableRectangle
return int

RectanglePositioner() public method

public RectanglePositioner ( SizeF pageSize, float boxSize, float spacing ) : System
pageSize System.Drawing.SizeF
boxSize float
spacing float
return System