Jexi Design (5) Page Style

zhaozj2021-02-16  75

Press the basic properties of Microsoft Word, PageStyle:

Float width; // Total width float height; // Total height float leftmargin; // left side from Float Right Margin; // Right margin

Float TopMargin; // On the upper side of FLOAT BOTTOMMARGIN; / / lower margin

Float bindingmargin; // 装;

The design page style is as follows:

The effective display area of ​​Page is Scalewidth and ScaleHeight:

Public float scalewidth () {??? RTURN Width - Leftmargin - Right Margin - ??????? (BindingPosition == Binding_left? BindingMargin: 0.0F);} public float scaleheight () {??? Return Height - TopMargin - Bottommargin - ??????? (bindingposition == binding_top? bindingmargin: 0.0f);

Similarly, the paragraph style is as follows:

Int alignment; // alignment float firstindent; // First line indent FLOAT LEFTINDENT; // Left into Float RightinDent; // Right indent FLOAT ROAT ROAT ROAT ROAT ROAT ROAT ROTSPACE; // Bad

Figure:

The row is determined by the highest GLYPH in the row, as the height of the third line above the figure above is the height of the picture.

The spacing is a preset constant.

The total width of Paragraph is determined by the page attribute scalewidth, and the total height is unlimited. It is not necessary to calculate. Page is calculated as high as the high rather than Paragraph.

PARAGRAPH's effective width ScaleWidth calculation:

Public float scalewidth {??? Return this.pstyle.scalewidth (firstrow);

转载请注明原文地址:https://www.9cbs.com/read-14020.html

New Post(0)