public interface IBulletFormatEffectiveData
Immutable object which contains effective paragraph bullet formatting properties.
IParagraphFormatEffectiveData
.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActualBulletValue()
Returns actual bullet value for parent paragraph.
|
char |
getChar()
Returns the bullet char of a paragraph.
|
java.lang.Integer |
getColor()
Deprecated.
Use IBulletFormatEffectiveData.getFillFormat().getSolidFillColor() instead. The property will be removed after release of version 21.9.
|
IFillFormatEffectiveData |
getFillFormat()
Returns the bullet fill format of a paragraph.
|
IFontData |
getFont()
Returns the bullet font of a paragraph.
|
float |
getHeight()
Returns the bullet height of a paragraph.
|
short |
getNumberedBulletStartWith()
Returns the first number which is used for group of numbered bullets.
|
byte |
getNumberedBulletStyle()
Returns the style of a numbered bullet.
|
IPictureEffectiveData |
getPicture()
Deprecated.
Use IBulletFormatEffectiveData.getFillFormat().getPictureFillFormat() instead. The property will be removed after release of version 21.9.
|
byte |
getType()
Returns the bullet type of a paragraph.
|
boolean |
isBulletHardColor()
Determines whether the bullet has own color or inherits it from the first portion in the paragraph.
|
boolean |
isBulletHardFont()
Determines whether the bullet has own font or inherits it from the first portion in the paragraph.
|
byte getType()
Returns the bullet type of a paragraph.
Read-only BulletType
.
char getChar()
Returns the bullet char of a paragraph.
Read-only char
.
java.lang.String getActualBulletValue()
Returns actual bullet value for parent paragraph.
Read-only String
.
float getHeight()
Returns the bullet height of a paragraph.
Read-only float
.
short getNumberedBulletStartWith()
Returns the first number which is used for group of numbered bullets.
Read-only short
.
byte getNumberedBulletStyle()
Returns the style of a numbered bullet.
Read-only NumberedBulletStyle
.
@Deprecated java.lang.Integer getColor()
Returns the color of a bullet.
Read-only Color
(getColor()
).
boolean isBulletHardColor()
Determines whether the bullet has own color or inherits it from the first portion in the paragraph.
Returns <b>true</b>
if bullet has own color and <b>false</b>
if bullet inherits color from the first portion in the paragraph.
Read-only boolean
.
boolean isBulletHardFont()
Determines whether the bullet has own font or inherits it from the first portion in the paragraph.
Returns <b>true</b>
if bullet has own font and <b>true</b>
if bullet inherits font from the first portion in the paragraph.
Read-only boolean
.
@Deprecated IPictureEffectiveData getPicture()
Returns the picture used as a bullet in the paragraph.
Read-only IPictureEffectiveData
.
IFillFormatEffectiveData getFillFormat()
Returns the bullet fill format of a paragraph.
Read-only IFillFormatEffectiveData
.
This example demonstrates retrieving bullet's fill effective data.Presentation pres = new Presentation("SomePresentation.pptx"); try { // Assume that the first shape on the first slide is AutoShape with some text... // Output information about text paragraphs' bullets AutoShape autoShape = (AutoShape)pres.getSlides().get_Item(0).getShapes().get_Item(0); for (IParagraph para : autoShape.getTextFrame().getParagraphs()) { IBulletFormatEffectiveData bulletFormatEffective = para.getParagraphFormat().getBullet().getEffective(); System.out.println("Bullet type: " + bulletFormatEffective.getType()); if (bulletFormatEffective.getType() != BulletType.None) { System.out.println("Bullet fill type: " + bulletFormatEffective.getFillFormat().getFillType()); switch (bulletFormatEffective.getFillFormat().getFillType()) { case FillType.Solid: System.out.println("Solid fill color: " + bulletFormatEffective.getFillFormat().getSolidFillColor()); break; case FillType.Gradient: System.out.println("Gradient stops count: " + bulletFormatEffective.getFillFormat().getGradientFormat().getGradientStops().size()); for (IGradientStopEffectiveData gradStop : bulletFormatEffective.getFillFormat().getGradientFormat().getGradientStops()) System.out.println(gradStop.getPosition() + ": " + gradStop.getColor()); break; case FillType.Pattern: System.out.println("Pattern style: " + bulletFormatEffective.getFillFormat().getPatternFormat().getPatternStyle()); System.out.println("Fore color: " + bulletFormatEffective.getFillFormat().getPatternFormat().getForeColor()); System.out.println("Back color: " + bulletFormatEffective.getFillFormat().getPatternFormat().getBackColor()); break; } } System.out.println(); } } finally { if (pres != null) pres.dispose(); }
Copyright © 2004-2020 Aspose Pty Ltd. All Rights Reserved.