Interface IBullet
Assembly: IronPPT.dll
Syntax
When a list item needs its own bullet glyph, color, or picture marker, IBullet is the contract that describes it. It models the bullet attached to a paragraph: the symbol shown before the text, how that symbol is colored and sized, and whether each aspect inherits from the surrounding text or overrides it. A developer styling list bullets on a slide works through this contract rather than touching the raw presentation markup.
A bullet is reached through a paragraph's style. IParagraphStyle.Bullet (and the concrete ParagraphStyle.Bullet) returns an IBullet, so the usual flow is to build a ParagraphStyle, assign its Bullet, and apply the style to a Paragraph. The concrete implementor in IronPPT is Bullet, in the IronPPT.Models.Styles namespace; most code constructs new Bullet() in a style initializer rather than naming the interface, but typing against IBullet keeps a styling helper independent of the concrete class.
The everyday members are Characters, the bullet glyph text; Picture, an IImage to use a graphic marker instead of a character; BulletColor, an IColor for the glyph; and Font, an IFont for the symbol typeface. The three FollowsDefaultText flags (FollowsDefaultTextColor, FollowsDefaultTextFont, FollowsDefaultTextSize) make the bullet inherit the paragraph's text color, font, or size; leave them on for a consistent look or turn one off to override that one aspect. Setting Picture produces an image bullet, which overrides the character glyph.
var style = new ParagraphStyle()
{
Bullet = new Bullet()
{
Characters = "•",
FollowsDefaultTextSize = true
}
};
The customized bullet point example walks through styling a bullet, the add paragraph example adds the paragraph the style applies to, and the IParagraphStyle reference returns the bullet through its Bullet property.
Properties
BulletColor
Declaration
IColor BulletColor { get; set; }
Property Value
Characters
Declaration
string Characters { get; set; }
Property Value
| Type |
Description |
| System.String |
|
FollowsDefaultTextColor
Declaration
Nullable<bool> FollowsDefaultTextColor { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
FollowsDefaultTextFont
Declaration
Nullable<bool> FollowsDefaultTextFont { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
FollowsDefaultTextSize
Declaration
Nullable<bool> FollowsDefaultTextSize { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
Font
Declaration
Property Value
Picture
Declaration
IImage Picture { get; set; }
Property Value