CharListBullet Class
A bullet that is displayed using a single character symbol.
Declaration
public class CharListBullet extends ListBullet
Remarks
The following code snippet configures a character bullet for a paragraph:
package presentation;
import com.devexpress.docs.presentation.*;
import com.devexpress.docs.office.*;
import com.devexpress.system.drawing.*;
public class App {
public static void main(String[] args) throws Exception {
Presentation presentation = new Presentation();
presentation.getSlides().clear();
Slide slide = new Slide(SlideLayoutType.BLANK);
presentation.getSlides().add(slide);
Shape shape = new Shape(ShapeType.getRectangle(), 30, 30, 2000, 1000);
slide.getShapes().add(shape);
// Use a char bullet for a text paragraph
CharListBullet c_bullet = new CharListBullet('•');
TextParagraph paragraph3 = new TextParagraph();
paragraph3.getProperties().setListBullet(c_bullet);
paragraph3.getProperties().setListBulletColor(new TextBulletColor(new OfficeColor(Color.getRed())));
paragraph3.setText("Paragraph 3");
shape.getTextArea().getParagraphs().add(paragraph3);
presentation.close();
}
}
Inherited Members
com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Inheritance
Object
JavaObject
OfficeObject
ListBullet
CharListBullet
CharListBullet(char character)
Initializes a new instance of the CharListBullet class with specified settings.
Declaration
public CharListBullet(char character)
Parameters
| Name | Type | Description |
|---|---|---|
| character | char | Specifies the bullet character. |
Methods
deepClone() Method
Returns a deep copy of this CharListBullet instance.
Declaration
public CharListBullet deepClone()
Returns
| Type | Description |
|---|---|
CharListBullet |
A deep copy of this |
getCharacter() Method
Returns the character used as the bullet symbol.
Declaration
public char getCharacter()
Returns
| Type | Description |
|---|---|
| char | The bullet character. |
Remarks
To specify a bullet character, use the CharListBullet class constructor.