Class Paragraph
Inheritance
System.Object
Paragraph
Implements
IronSoftware.Abstractions.IDocumentElement
IronSoftware.IDocumentObject
System.ICloneable
IronSoftware.Abstractions.IDocumentParagraph
IronSoftware.Abstractions.Relative.IDocumentTextElementContainer<
ParagraphStyle>
Assembly: IronWord.dll
Syntax
public class Paragraph : ParentElement, IDocumentElement, IDocumentObject, ICloneable, IElementContainer<ContentElementCollection, ContentElement>, IDocumentParagraph, ITextContainer, IDrawContainer, IDocumentTextElementContainer<ParagraphStyle>
Constructors
Paragraph()
Declaration
Paragraph(ContentElement[])
Declaration
public Paragraph(params ContentElement[] children)
Parameters
Properties
Alignment
Declaration
public TextAlignment Alignment { get; set; }
Property Value
FirstLineIndention
Declaration
public float FirstLineIndention { get; set; }
Property Value
Type |
Description |
System.Single |
|
HorizontalContentAlignment
Declaration
public HorizontalAlignments HorizontalContentAlignment { get; set; }
Property Value
Type |
Description |
IronSoftware.Abstractions.Styling.HorizontalAlignments |
|
Index
Declaration
public int Index { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
LineSpacing
Declaration
public float LineSpacing { get; set; }
Property Value
Type |
Description |
System.Single |
|
SpacingAfter
Declaration
public float SpacingAfter { get; set; }
Property Value
Type |
Description |
System.Single |
|
SpacingBefore
Declaration
public float SpacingBefore { get; set; }
Property Value
Type |
Description |
System.Single |
|
Style
Declaration
public ParagraphStyle Style { get; set; }
Property Value
Methods
AddChild(ContentElement[])
Declaration
public override void AddChild(params ContentElement[] children)
Parameters
Overrides
AddImage(AnyBitmap)
Declaration
public ImageContent AddImage(AnyBitmap anyBitmap)
Parameters
Type |
Name |
Description |
IronSoftware.Drawing.AnyBitmap |
anyBitmap |
|
Returns
AddImage(ImageContent)
Declaration
public ImageContent AddImage(ImageContent imageContent)
Parameters
Returns
AddImage(Stream)
Declaration
public ImageContent AddImage(Stream imageStream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
imageStream |
|
Returns
AddImage(String)
Declaration
public ImageContent AddImage(string imagePath)
Parameters
Type |
Name |
Description |
System.String |
imagePath |
|
Returns
AddShape(ShapeContent)
Declaration
public ShapeContent AddShape(ShapeContent shapeContent)
Parameters
Returns
AddText(TextContent)
Declaration
public TextContent AddText(TextContent textContent)
Parameters
Returns
AddText(String)
Declaration
public TextContent AddText(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Declaration
public string ExtractText()
Returns
Type |
Description |
System.String |
|
ReplaceText(String, String)
Declaration
public void ReplaceText(string find, string replace)
Parameters
Type |
Name |
Description |
System.String |
find |
|
System.String |
replace |
|
SetAlignment(TextAlignment)
Declaration
public Paragraph SetAlignment(TextAlignment alignment)
Parameters
Returns
SetStyle(ParagraphStyle)
Declaration
public Paragraph SetStyle(ParagraphStyle style)
Parameters
Returns
Implements
IronSoftware.Abstractions.IDocumentElement
IronSoftware.IDocumentObject
System.ICloneable
IronSoftware.Abstractions.IElementContainer<, >
IronSoftware.Abstractions.IDocumentParagraph
IronSoftware.Abstractions.Relative.IDocumentTextElementContainer<>