|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.ParagraphFormat
public class ParagraphFormat
This class contains the paragraph formatting properties. Unlike ParagraphFormatEffectiveData
, all properties of this class are writeable.
This class is used to return and manipulate paragraph formatting properties defined for the particular paragraph. This means that no inheritance is applied when getting values so for the majority of cases you will get values meaning "undefined".
In order to get the effective formatting parameter values including inherited you need to use Paragraph.CreateParagraphFormatEffective
method
which returns a ParagraphFormatEffectiveData
instance.
Method Summary | |
---|---|
int |
getAlignment()
Returns or sets the text alignment in a paragraph with no inheritance. |
IBulletFormat |
getBullet()
|
char |
getBulletChar()
Deprecated. |
IColorFormat |
getBulletColor()
Deprecated. |
IColorFormat |
getBulletColorFormat()
Deprecated. |
IFontData |
getBulletFont()
Deprecated. |
float |
getBulletHeight()
Deprecated. |
byte |
getBulletType()
Deprecated. |
IPortionFormat |
getDefaultPortionFormat()
Returns default portion format of a paragraph. |
float |
getDefaultTabSize()
Returns or sets default tabulation size with no inheritance. |
short |
getDepth()
Returns or sets depth of the paragraph. |
byte |
getEastAsianLineBreak()
Determines whether the East Asian line break is used in a paragraph. |
int |
getFontAlignment()
Returns or sets a font alignment in a paragraph with no inheritance. |
byte |
getHangingPunctuation()
Determines whether the hanging punctuation is used in a paragraph. |
float |
getIndent()
Returns or sets text indentation in a paragraph with no inheritance. |
byte |
getLatinLineBreak()
Determines whether the Latin line break is used in a paragraph. |
float |
getMarginLeft()
Returns or sets the left margin in a paragraph with no inheritance. |
float |
getMarginRight()
Returns or sets the right margin in a paragraph with no inheritance. |
short |
getNumberedBulletStartWith()
Deprecated. |
int |
getNumberedBulletStyle()
Deprecated. |
IPresentation |
getPresentation()
Returns the parent presentation of a paragraph. |
byte |
getRightToLeft()
Determines whether the Right to Left writing is used in a paragraph. |
IBaseSlide |
getSlide()
Returns the parent slide of a paragraph. |
float |
getSpaceAfter()
Returns or sets the amount of space after the last line in a paragraph with no inheritance. |
float |
getSpaceBefore()
Returns or sets the amount of space before the first line in a paragraph with no inheritance. |
float |
getSpaceWithin()
Returns or sets the amount of space between base lines in a paragraph. |
ITabCollection |
getTabs()
Returns tabulations of a paragraph. |
byte |
isBulletHardColor()
Deprecated. |
void |
isBulletHardColor(byte value)
Deprecated. |
byte |
isBulletHardFont()
Deprecated. |
void |
isBulletHardFont(byte value)
Deprecated. |
void |
setAlignment(int value)
|
void |
setBulletChar(char value)
Deprecated. |
void |
setBulletFont(IFontData value)
Deprecated. |
void |
setBulletHeight(float value)
Deprecated. |
void |
setBulletType(byte value)
Deprecated. |
void |
setDefaultTabSize(float value)
|
void |
setDepth(short value)
|
void |
setEastAsianLineBreak(byte value)
|
void |
setFontAlignment(int value)
|
void |
setHangingPunctuation(byte value)
|
void |
setIndent(float value)
|
void |
setLatinLineBreak(byte value)
|
void |
setMarginLeft(float value)
|
void |
setMarginRight(float value)
|
void |
setNumberedBulletStartWith(short value)
Deprecated. |
void |
setNumberedBulletStyle(int value)
Deprecated. |
void |
setRightToLeft(byte value)
|
void |
setSpaceAfter(float value)
|
void |
setSpaceBefore(float value)
|
void |
setSpaceWithin(float value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public short getDepth()
Returns or sets depth of the paragraph.
Read/write short
.
getDepth
in interface IParagraphFormat
public void setDepth(short value)
setDepth
in interface IParagraphFormat
public int getAlignment()
Returns or sets the text alignment in a paragraph with no inheritance.
Read/write TextAlignment
.
getAlignment
in interface IChartParagraphFormat
getAlignment
in interface IParagraphFormat
public void setAlignment(int value)
setAlignment
in interface IChartParagraphFormat
setAlignment
in interface IParagraphFormat
public float getSpaceWithin()
Returns or sets the amount of space between base lines in a paragraph. Positive value means percentage, negative - size in points. No inheritance applied.
Read/write float
.
getSpaceWithin
in interface IChartParagraphFormat
getSpaceWithin
in interface IParagraphFormat
public void setSpaceWithin(float value)
setSpaceWithin
in interface IChartParagraphFormat
setSpaceWithin
in interface IParagraphFormat
public float getSpaceBefore()
Returns or sets the amount of space before the first line in a paragraph with no inheritance.
Read/write float
.
getSpaceBefore
in interface IChartParagraphFormat
getSpaceBefore
in interface IParagraphFormat
public void setSpaceBefore(float value)
setSpaceBefore
in interface IChartParagraphFormat
setSpaceBefore
in interface IParagraphFormat
public float getSpaceAfter()
Returns or sets the amount of space after the last line in a paragraph with no inheritance.
Read/write float
.
getSpaceAfter
in interface IChartParagraphFormat
getSpaceAfter
in interface IParagraphFormat
public void setSpaceAfter(float value)
setSpaceAfter
in interface IChartParagraphFormat
setSpaceAfter
in interface IParagraphFormat
public byte getEastAsianLineBreak()
Determines whether the East Asian line break is used in a paragraph. No inheritance applied.
Read/write NullableBool
.
getEastAsianLineBreak
in interface IChartParagraphFormat
getEastAsianLineBreak
in interface IParagraphFormat
public void setEastAsianLineBreak(byte value)
setEastAsianLineBreak
in interface IChartParagraphFormat
setEastAsianLineBreak
in interface IParagraphFormat
public byte getRightToLeft()
Determines whether the Right to Left writing is used in a paragraph. No inheritance applied.
Read/write NullableBool
.
getRightToLeft
in interface IChartParagraphFormat
getRightToLeft
in interface IParagraphFormat
public void setRightToLeft(byte value)
setRightToLeft
in interface IChartParagraphFormat
setRightToLeft
in interface IParagraphFormat
public byte getLatinLineBreak()
Determines whether the Latin line break is used in a paragraph. No inheritance applied.
Read/write NullableBool
.
getLatinLineBreak
in interface IChartParagraphFormat
getLatinLineBreak
in interface IParagraphFormat
public void setLatinLineBreak(byte value)
setLatinLineBreak
in interface IChartParagraphFormat
setLatinLineBreak
in interface IParagraphFormat
public byte getHangingPunctuation()
Determines whether the hanging punctuation is used in a paragraph. No inheritance applied.
Read/write NullableBool
.
getHangingPunctuation
in interface IChartParagraphFormat
getHangingPunctuation
in interface IParagraphFormat
public void setHangingPunctuation(byte value)
setHangingPunctuation
in interface IChartParagraphFormat
setHangingPunctuation
in interface IParagraphFormat
public float getMarginLeft()
Returns or sets the left margin in a paragraph with no inheritance.
Read/write float
.
getMarginLeft
in interface IChartParagraphFormat
getMarginLeft
in interface IParagraphFormat
public void setMarginLeft(float value)
setMarginLeft
in interface IChartParagraphFormat
setMarginLeft
in interface IParagraphFormat
public float getMarginRight()
Returns or sets the right margin in a paragraph with no inheritance.
Read/write float
.
getMarginRight
in interface IChartParagraphFormat
getMarginRight
in interface IParagraphFormat
public void setMarginRight(float value)
setMarginRight
in interface IChartParagraphFormat
setMarginRight
in interface IParagraphFormat
public float getIndent()
Returns or sets text indentation in a paragraph with no inheritance.
Read/write float
.
getIndent
in interface IChartParagraphFormat
getIndent
in interface IParagraphFormat
public void setIndent(float value)
setIndent
in interface IChartParagraphFormat
setIndent
in interface IParagraphFormat
public float getDefaultTabSize()
Returns or sets default tabulation size with no inheritance.
Read/write float
.
getDefaultTabSize
in interface IChartParagraphFormat
getDefaultTabSize
in interface IParagraphFormat
public void setDefaultTabSize(float value)
setDefaultTabSize
in interface IChartParagraphFormat
setDefaultTabSize
in interface IParagraphFormat
public ITabCollection getTabs()
Returns tabulations of a paragraph. No inheritance applied.
Read-only TabCollection
.
getTabs
in interface IChartParagraphFormat
getTabs
in interface IParagraphFormat
public int getFontAlignment()
Returns or sets a font alignment in a paragraph with no inheritance.
Read/write FontAlignment
.
getFontAlignment
in interface IChartParagraphFormat
getFontAlignment
in interface IParagraphFormat
public void setFontAlignment(int value)
setFontAlignment
in interface IChartParagraphFormat
setFontAlignment
in interface IParagraphFormat
public IPortionFormat getDefaultPortionFormat()
Returns default portion format of a paragraph. No inheritance applied.
Read-only PortionFormat
.
getDefaultPortionFormat
in interface IParagraphFormat
public IBaseSlide getSlide()
Returns the parent slide of a paragraph.
Read-only BaseSlide
.
getSlide
in interface ISlideComponent
public IPresentation getPresentation()
Returns the parent presentation of a paragraph.
Read-only Presentation
.
getPresentation
in interface IPresentationComponent
public IBulletFormat getBullet()
getBullet
in interface IParagraphFormat
@Deprecated public byte getBulletType()
Returns or sets the bullet type of a paragraph.
Read/write BulletType
.
@Deprecated public void setBulletType(byte value)
@Deprecated public char getBulletChar()
Returns or sets the bullet char of a paragraph.
Read/write char
.
@Deprecated public void setBulletChar(char value)
@Deprecated public IFontData getBulletFont()
Returns or sets the bullet font of a paragraph.
Read/write FontData
.
@Deprecated public void setBulletFont(IFontData value)
@Deprecated public float getBulletHeight()
Returns or sets the bullet height of a paragraph.
Read/write float
.
@Deprecated public void setBulletHeight(float value)
@Deprecated public IColorFormat getBulletColor()
Returns the color format of a bullet of a paragraph.
Read-only ColorFormat
.
@Deprecated public short getNumberedBulletStartWith()
Returns or sets the first number which is used for group of numbered bullets.
Read/write short
.
@Deprecated public void setNumberedBulletStartWith(short value)
@Deprecated public int getNumberedBulletStyle()
Returns or sets the style of a numbered bullet.
Read/write NumberedBulletStyle
.
@Deprecated public void setNumberedBulletStyle(int value)
@Deprecated public byte isBulletHardColor()
Determines whether the bullet has own color or inherits it from the first portion in the paragraph.
<b>NullableBool.True</b>
if bullet has own color and <b>NullableBool.False</b>
if bullet
inherits color from the first portion in the paragraph.
Read/write NullableBool
.
@Deprecated public void isBulletHardColor(byte value)
@Deprecated public IColorFormat getBulletColorFormat()
Returns or sets the color of a bullet.
Read-only ColorFormat
.
@Deprecated public byte isBulletHardFont()
Determines whether the bullet has own font or inherits it from the first portion in the paragraph.
<b>NullableBool.True</b>
if bullet has own font and <b>NullableBool.False</b>
if bullet
inherits font from the first portion in the paragraph.
Read/write NullableBool
.
@Deprecated public void isBulletHardFont(byte value)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |