paragraphformat-ag凯发旗舰厅



com.spire.doc.formatting
class paragraphformat

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.documents.xml.documentserializable
          extended by com.spire.doc.formatting.formatbase
              extended by com.spire.doc.formatting.attrcollection
                  extended by com.spire.doc.formatting.wordattrcollection
                      extended by com.spire.doc.formatting.paragraphformat

public class paragraphformat
extends wordattrcollection

constructor summary
paragraphformat()
          initializes a new instance of the paragraphformat class.
paragraphformat(idocument document)
          initializes a new instance of the paragraphformatclass.
 
method summary
 boolean getafterautospacing()
          gets a value indicating whether spacing after is automatic.
 float getafterspacing()
          returns the spacing (in points) after the paragraph.
 boolean getautospacede()
          gets the value that determines whether the space is automatically adjusted between asian and latin text.
 boolean getautospacedn()
          gets the value that determines whether the space is automatically adjusted between asian text and numbers.
 java.awt.color getbackcolor()
          gets background color of the paragraph
 boolean getbeforeautospacing()
          gets a value indicating whether spacing before is automatic.
 float getbeforespacing()
          returns the spacing (in points) before the paragraph.
 borders getborders()
          gets collection of borders in the paragraph
 float getfirstlineindent()
          gets first paragraph line indent
 horizontalalignment gethorizontalalignment()
          returns horizontal alignment for the paragraph.
 boolean getkeepfollow()
          true if the paragraph is to remains on the same page as the paragraph that follows it.
 boolean getkeeplines()
          true if all lines in the paragraph are to remain on the same page.
 float getleftindent()
          returns the value that represents the left indent for paragraph.
 float getlinespacing()
          returns line spacing property of the paragraph.
 linespacingrule getlinespacingrule()
          returns line spacing rule property of the paragraph.
 boolean getmirrorindents()
          gets a value indicating whether indentation type is mirror indents.
 outlinelevel getoutlinelevel()
          gets the outline level.
 boolean getoverflowpunc()
          gets allow punctuation to extend past text extents.
 boolean getpagebreakafter()
          true if a page break is forced after the paragraph
 boolean getpagebreakbefore()
          true if a page break is forced before the paragraph
 float getrightindent()
          returns the value that represents the right indent for paragraph.
 boolean getsuppressautohyphens()
          indicates whether to suppress automatic hyphenation for the paragraph.
 tabcollection gettabs()
          gets the tabs info.
 textalignment gettextalignment()
          gets the style of textalignment
 boolean isbidi()
          returns right-to-left property of the paragraph.
 void isbidi(boolean value)
          sets right-to-left property of the paragraph.
 boolean iscolumnbreakafter()
          true if a column break is forced after the paragraph
 void iscolumnbreakafter(boolean value)
          true if a column break is forced after the paragraph
 boolean isframe()
          gets a value indicating whether this instance is frame.
 boolean iskinsoku()
          get a value that determines whether use asian rules for controlling first and last characters.
 void iskinsoku(boolean value)
          set a value that determines whether use asian rules for controlling first and last characters.
 boolean iswidowcontrol()
          true if the first and last lines in the paragraph are to remain on the same page as the rest of the paragraph.
 void iswidowcontrol(boolean value)
          true if the first and last lines in the paragraph are to remain on the same page as the rest of the paragraph.
 void setafterautospacing(boolean value)
          sets a value indicating whether spacing after is automatic.
 void setafterspacing(float value)
          sets the spacing (in points) after the paragraph.
 void setautospacede(boolean value)
          sets the value that determines whether the space is automatically adjusted between asian and latin text.
 void setautospacedn(boolean value)
          sets the value that determines whether the space is automatically adjusted between asian text and numbers.
 void setbackcolor(java.awt.color value)
          sets background color of the paragraph
 void setbeforeautospacing(boolean value)
          sets a value indicating whether spacing before is automatic.
 void setbeforespacing(float value)
          sets the spacing (in points) before the paragraph.
 void setfirstlineindent(float value)
          sets first paragraph line indent
 void setfirstlineindentex(float firstlineindent)
          sets the value that represents the first line indent for paragraph.
 void sethorizontalalignment(horizontalalignment value)
          sets horizontal alignment for the paragraph.
 void setkeepfollow(boolean value)
          true if the paragraph is to remains on the same page as the paragraph that follows it.
 void setkeeplines(boolean value)
          true if all lines in the paragraph are to remain on the same page.
 void setleftindent(float value)
          sets the value that represents the left indent for paragraph.
 void setleftindentex(float leftindent)
          sets the value that represents the left indent for paragraph.
 void setlinespacing(float value)
          sets line spacing property of the paragraph.
 void setlinespacingrule(linespacingrule value)
          sets line spacing rule property of the paragraph.
 void setmirrorindents(boolean value)
          sets a value indicating whether indentation type is mirror indents.
 void setoutlinelevel(outlinelevel value)
          sets the outline level.
 void setoverflowpunc(boolean value)
          sets allow punctuation to extend past text extents.
 void setpagebreakafter(boolean value)
          true if a page break is forced after the paragraph
 void setpagebreakbefore(boolean value)
          true if a page break is forced before the paragraph
 void setrightindent(float value)
          sets the value that represents the right indent for paragraph.
 void setrightindentex(float rightindent)
          sets the value that represents the right indent for paragraph.
 void setsuppressautohyphens(boolean value)
          indicates whether to suppress automatic hyphenation for the paragraph.
 void settextalignment(textalignment value)
          sets the style of textalignment
 
methods inherited from class com.spire.doc.formatting.formatbase
clearformatting, haskey, isdefault
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
constructor detail

paragraphformat

public paragraphformat()
initializes a new instance of the paragraphformat class.

paragraphformat

public paragraphformat(idocument document)
initializes a new instance of the paragraphformatclass.
parameters:
document - idocument
method detail

iskinsoku

public boolean iskinsoku()
get a value that determines whether use asian rules for controlling first and last characters.
returns:
boolean

iskinsoku

public void iskinsoku(boolean value)
set a value that determines whether use asian rules for controlling first and last characters.
parameters:
value - boolean

isbidi

public boolean isbidi()
returns right-to-left property of the paragraph.
returns:
isbidi

isbidi

public void isbidi(boolean value)
sets right-to-left property of the paragraph.
parameters:
value - if bidi, set to true.

gettabs

public tabcollection gettabs()
gets the tabs info.
returns:
the tabs info.

getkeeplines

public boolean getkeeplines()
true if all lines in the paragraph are to remain on the same page.
returns:
keeplines

setkeeplines

public void setkeeplines(boolean value)
true if all lines in the paragraph are to remain on the same page.
parameters:
value - keeplines

getkeepfollow

public boolean getkeepfollow()
true if the paragraph is to remains on the same page as the paragraph that follows it.
returns:
keepfollow

setkeepfollow

public void setkeepfollow(boolean value)
true if the paragraph is to remains on the same page as the paragraph that follows it.
parameters:
value - keepfollow

getpagebreakbefore

public boolean getpagebreakbefore()
true if a page break is forced before the paragraph
returns:
pagebreakbefore

setpagebreakbefore

public void setpagebreakbefore(boolean value)
true if a page break is forced before the paragraph
parameters:
value - pagebreakbefore

getpagebreakafter

public boolean getpagebreakafter()
true if a page break is forced after the paragraph
returns:
pagebreakafter

setpagebreakafter

public void setpagebreakafter(boolean value)
true if a page break is forced after the paragraph
parameters:
value - pagebreakafter

iswidowcontrol

public boolean iswidowcontrol()
true if the first and last lines in the paragraph are to remain on the same page as the rest of the paragraph.
returns:
widowcontrol

iswidowcontrol

public void iswidowcontrol(boolean value)
true if the first and last lines in the paragraph are to remain on the same page as the rest of the paragraph.
parameters:
value - widowcontrol

getautospacedn

public boolean getautospacedn()
gets the value that determines whether the space is automatically adjusted between asian text and numbers.
returns:
boolean

setautospacedn

public void setautospacedn(boolean value)
sets the value that determines whether the space is automatically adjusted between asian text and numbers.
parameters:
value - boolean

getautospacede

public boolean getautospacede()
gets the value that determines whether the space is automatically adjusted between asian and latin text.
returns:
boolean

setautospacede

public void setautospacede(boolean value)
sets the value that determines whether the space is automatically adjusted between asian and latin text.
parameters:
value - boolean

gethorizontalalignment

public horizontalalignment gethorizontalalignment()
returns horizontal alignment for the paragraph.
returns:
horizontalalignment

sethorizontalalignment

public void sethorizontalalignment(horizontalalignment value)
sets horizontal alignment for the paragraph.
parameters:
value - horizontalalignment

getleftindent

public float getleftindent()
returns the value that represents the left indent for paragraph.
returns:
float

setleftindent

public void setleftindent(float value)
sets the value that represents the left indent for paragraph.
parameters:
value - float

getrightindent

public float getrightindent()
returns the value that represents the right indent for paragraph.
returns:
float

setrightindent

public void setrightindent(float value)
sets the value that represents the right indent for paragraph.
parameters:
value - float

getfirstlineindent

public float getfirstlineindent()
gets first paragraph line indent
returns:
float

setfirstlineindent

public void setfirstlineindent(float value)
sets first paragraph line indent
parameters:
value - float

getbeforespacing

public float getbeforespacing()
returns the spacing (in points) before the paragraph.
returns:
float

setbeforespacing

public void setbeforespacing(float value)
sets the spacing (in points) before the paragraph.
parameters:
value - float

getafterspacing

public float getafterspacing()
returns the spacing (in points) after the paragraph.
returns:
float

setafterspacing

public void setafterspacing(float value)
sets the spacing (in points) after the paragraph.
parameters:
value - float

getborders

public borders getborders()
gets collection of borders in the paragraph
returns:
borders

getbackcolor

public java.awt.color getbackcolor()
gets background color of the paragraph
returns:
color

setbackcolor

public void setbackcolor(java.awt.color value)
sets background color of the paragraph
parameters:
value - color

iscolumnbreakafter

public boolean iscolumnbreakafter()
true if a column break is forced after the paragraph
returns:
is columnbreakafter or not

iscolumnbreakafter

public void iscolumnbreakafter(boolean value)
true if a column break is forced after the paragraph
parameters:
value - is columnbreakafter or not

getlinespacing

public float getlinespacing()
returns line spacing property of the paragraph.
returns:
linespacing

setlinespacing

public void setlinespacing(float value)
sets line spacing property of the paragraph.
parameters:
value - linespacing

getlinespacingrule

public linespacingrule getlinespacingrule()
returns line spacing rule property of the paragraph.
returns:
linespacingrule

setlinespacingrule

public void setlinespacingrule(linespacingrule value)
sets line spacing rule property of the paragraph.
parameters:
value - linespacingrule

getbeforeautospacing

public boolean getbeforeautospacing()
gets a value indicating whether spacing before is automatic.
returns:
if spacing before is automatic, set to true.

setbeforeautospacing

public void setbeforeautospacing(boolean value)
sets a value indicating whether spacing before is automatic.
parameters:
value - if spacing before is automatic, set to true.

getafterautospacing

public boolean getafterautospacing()
gets a value indicating whether spacing after is automatic.
returns:
if spacing after is automatic, set to true.

setafterautospacing

public void setafterautospacing(boolean value)
sets a value indicating whether spacing after is automatic.
parameters:
value - if spacing after is automatic, set to true.

getoutlinelevel

public outlinelevel getoutlinelevel()
gets the outline level.
returns:
the outline level.

setoutlinelevel

public void setoutlinelevel(outlinelevel value)
sets the outline level.
parameters:
value - the outline level.

getoverflowpunc

public boolean getoverflowpunc()
gets allow punctuation to extend past text extents.
returns:
overflowpunc

setoverflowpunc

public void setoverflowpunc(boolean value)
sets allow punctuation to extend past text extents.
parameters:
value - overflowpunc

isframe

public boolean isframe()
gets a value indicating whether this instance is frame.
returns:
if this instance is frame, set to true.

gettextalignment

public textalignment gettextalignment()
gets the style of textalignment
returns:
textalignment

settextalignment

public void settextalignment(textalignment value)
sets the style of textalignment
parameters:
value - textalignment

getmirrorindents

public boolean getmirrorindents()
gets a value indicating whether indentation type is mirror indents.
returns:
is mirrorindents or not

setmirrorindents

public void setmirrorindents(boolean value)
sets a value indicating whether indentation type is mirror indents.
parameters:
value - is mirrorindents or not

getsuppressautohyphens

public boolean getsuppressautohyphens()
indicates whether to suppress automatic hyphenation for the paragraph.
returns:
is suppressautohyphens or not

setsuppressautohyphens

public void setsuppressautohyphens(boolean value)
indicates whether to suppress automatic hyphenation for the paragraph.
parameters:
value - is suppressautohyphens or not

setleftindentex

public void setleftindentex(float leftindent)
sets the value that represents the left indent for paragraph.
parameters:
leftindent - the left indent.

setrightindentex

public void setrightindentex(float rightindent)
sets the value that represents the right indent for paragraph.
parameters:
rightindent - the right indent.

setfirstlineindentex

public void setfirstlineindentex(float firstlineindent)
sets the value that represents the first line indent for paragraph.
parameters:
firstlineindent - the first line indent.


网站地图