C# 클래스 Novacode.Paragraph

Represents a document paragraph.
상속: InsertBeforeOrAfter
파일 보기 프로젝트 열기: WordDocX/DocX 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ListItemType ListItemType
ParentContainer ContainerType

Private Properties

프로퍼티 타입 설명
ApplyTextFormattingProperty void
CreateEdit System.Xml.Linq.XElement
CreatePicture Picture
GetElementTextLength int
GetFirstRunEffectedByEdit Run
GetFirstRunEffectedByEditRecursive void
GetOrCreate_pPr System.Xml.Linq.XElement
GetOrCreate_pPr_ind System.Xml.Linq.XElement
GetOrGenerateRel string
GetOrGenerateRel string
GetParagraphNumberProperties System.Xml.Linq.XElement
InsertHyperlink Paragraph
Paragraph System
RebuildDocProperties void
RemoveHyperlinkRecursive void
ReplaceAtBookmark_Add void
SplitEdit System.Xml.Linq.XElement[]

공개 메소드들

메소드 설명
Append ( string text ) : Paragraph

Append text to this Paragraph.

AppendBookmark ( String bookmarkName ) : Paragraph
AppendDocProperty ( CustomProperty cp, bool trackChanges = false, Formatting f = null ) : Paragraph

Append a field of type document property, this field will display the custom property cp, at the end of this paragraph.

AppendEquation ( String equation ) : Paragraph

Add an equation to a document.

AppendHyperlink ( Novacode.Hyperlink h ) : Paragraph

Append a hyperlink to a Paragraph.

AppendLine ( ) : Paragraph

Append a new line to this Paragraph.

AppendLine ( string text ) : Paragraph

Append text on a new line to this Paragraph.

AppendPageCount ( PageNumberFormat pnf ) : void

Append a PageCount place holder onto the end of a Paragraph.

AppendPageNumber ( PageNumberFormat pnf ) : void

Append a PageNumber place holder onto the end of a Paragraph.

AppendPicture ( Picture p ) : Paragraph

Add an image to a document, create a custom view of that image (picture) and then insert it into a Paragraph using append.

Bold ( ) : Paragraph

For use with Append() and AppendLine()

CapsStyle ( CapsStyle capsStyle ) : Paragraph

For use with Append() and AppendLine()

Color ( Color c ) : Paragraph

For use with Append() and AppendLine()

Culture ( CultureInfo culture ) : Paragraph

For use with Append() and AppendLine()

CurentCulture ( ) : Paragraph

For use with Append() and AppendLine()

FindAll ( string str ) : List

Find all instances of a string in this paragraph and return their indexes in a List.

FindAll ( string str, RegexOptions options ) : List

Find all instances of a string in this paragraph and return their indexes in a List.

FindAllByPattern ( string str, RegexOptions options ) : List

Find all unique instances of the given Regex Pattern

Font ( Font fontFamily ) : Paragraph

For use with Append() and AppendLine()

Font ( string fontName ) : Paragraph

For use with Append() and AppendLine()

FontSize ( double fontSize ) : Paragraph

For use with Append() and AppendLine()

GetBookmarks ( ) : IEnumerable
Hide ( ) : Paragraph

For use with Append() and AppendLine()

Highlight ( Highlight highlight ) : Paragraph

For use with Append() and AppendLine()

InsertAtBookmark ( string toInsert, string bookmarkName ) : void
InsertDocProperty ( CustomProperty cp, bool trackChanges = false, Formatting f = null ) : DocProperty

Insert a field of type document property, this field will display the custom property cp, at the end of this paragraph.

InsertHorizontalLine ( string lineType = "single", int size = 6, int space = 1, string color = "auto" ) : void
InsertHyperlink ( Novacode.Hyperlink h, int index ) : Paragraph

This function inserts a hyperlink into a Paragraph at a specified character index.

InsertPageBreakAfterSelf ( ) : void

Insert a page break after a Paragraph.

InsertPageBreakBeforeSelf ( ) : void

Insert a page break before a Paragraph.

InsertPageCount ( PageNumberFormat pnf, int index ) : void

Insert a PageCount place holder into a Paragraph. This place holder should only be inserted into a Header or Footer Paragraph. Word will not automatically update this field if it is inserted into a document level Paragraph.

InsertPageNumber ( PageNumberFormat pnf, int index ) : void

Insert a PageNumber place holder into a Paragraph. This place holder should only be inserted into a Header or Footer Paragraph. Word will not automatically update this field if it is inserted into a document level Paragraph.

InsertParagraphAfterSelf ( Paragraph p ) : Paragraph

Insert a Paragraph after this Paragraph, this Paragraph may have come from the same or another document.

InsertParagraphAfterSelf ( string text ) : Paragraph

Insert a new Paragraph after this Paragraph.

InsertParagraphAfterSelf ( string text, bool trackChanges ) : Paragraph

Insert a new Paragraph after this Paragraph.

InsertParagraphAfterSelf ( string text, bool trackChanges, Formatting formatting ) : Paragraph

Insert a new Paragraph after this Paragraph.

InsertParagraphBeforeSelf ( Paragraph p ) : Paragraph

Insert a Paragraph before this Paragraph, this Paragraph may have come from the same or another document.

InsertParagraphBeforeSelf ( string text ) : Paragraph

Insert a new Paragraph before this Paragraph.

InsertParagraphBeforeSelf ( string text, bool trackChanges ) : Paragraph

Insert a new Paragraph before this Paragraph.

InsertParagraphBeforeSelf ( string text, bool trackChanges, Formatting formatting ) : Paragraph

Insert a new Paragraph before this Paragraph.

InsertPicture ( Picture p, int index ) : Paragraph

Insert a Picture into a Paragraph at the given text index. If not index is provided defaults to 0.

InsertTableAfterSelf ( Table t ) : Table

Insert a new Table after this Paragraph.

InsertTableAfterSelf ( int rowCount, int columnCount ) : Table

Insert a new Table into this document after this Paragraph.

InsertTableBeforeSelf ( Table t ) : Table

Insert a new Table before this Paragraph, this Table can be from this document or another document.

InsertTableBeforeSelf ( int rowCount, int columnCount ) : Table

Insert a new Table into this document before this Paragraph.

InsertText ( int index, string value, bool trackChanges = false, Formatting formatting = null ) : void

Inserts a specified instance of System.String into a Novacode.DocX.Paragraph at a specified index position.

InsertText ( string value, bool trackChanges = false, Formatting formatting = null ) : void

Inserts a specified instance of System.String into a Novacode.DocX.Paragraph at a specified index position.

Italic ( ) : Paragraph

For use with Append() and AppendLine()

KeepLinesTogether ( bool keepTogether = true ) : Paragraph

Keep all lines in this paragraph together on a page

KeepWithNext ( bool keepWithNext = true ) : Paragraph

This paragraph will be kept on the same page as the next paragraph

Kerning ( int kerning ) : Paragraph
Misc ( Misc misc ) : Paragraph

For use with Append() and AppendLine()

PercentageScale ( int percentageScale ) : Paragraph
Position ( double position ) : Paragraph
Remove ( bool trackChanges ) : void

Remove this Paragraph from the document.

RemoveHyperlink ( int index ) : void

Remove the Hyperlink at the provided index. The first hyperlink is at index 0. Using a negative index or an index greater than the index of the last hyperlink will cause an ArgumentOutOfRangeException() to be thrown.

RemoveText ( int index, bool trackChanges = false ) : void

Removes characters from a Novacode.DocX.Paragraph.

RemoveText ( int index, int count, bool trackChanges = false ) : void

Removes characters from a Novacode.DocX.Paragraph.

ReplaceAtBookmark ( string toInsert, string bookmarkName ) : void
ReplaceText ( string findPattern, string>.Func regexMatchHandler, bool trackChanges = false, RegexOptions options = RegexOptions.None, Formatting newFormatting = null, Formatting matchFormatting = null, MatchFormattingOptions fo = MatchFormattingOptions.SubsetMatch ) : void

Find pattern regex must return a group match.

ReplaceText ( string oldValue, string newValue, bool trackChanges = false, RegexOptions options = RegexOptions.None, Formatting newFormatting = null, Formatting matchFormatting = null, MatchFormattingOptions fo = MatchFormattingOptions.SubsetMatch, bool escapeRegEx = true, bool useRegExSubstitutions = false ) : void

Replaces all occurrences of a specified System.String in this instance, with another specified System.String.

Script ( System.Script script ) : Paragraph

For use with Append() and AppendLine()

SetLineSpacing ( LineSpacingType spacingType, float spacingFloat ) : void

Set the linespacing for this paragraph manually.

SetLineSpacing ( LineSpacingTypeAuto spacingType ) : void

Set the linespacing for this paragraph using the Auto value.

Spacing ( double spacing ) : Paragraph
SpacingAfter ( double spacingAfter ) : Paragraph
SpacingBefore ( double spacingBefore ) : Paragraph
StrikeThrough ( StrikeThrough strikeThrough ) : Paragraph

For use with Append() and AppendLine()

UnderlineColor ( Color underlineColor ) : Paragraph

For use with Append() and AppendLine()

UnderlineStyle ( UnderlineStyle underlineStyle ) : Paragraph

For use with Append() and AppendLine()

ValidateBookmark ( string bookmarkName ) : bool

비공개 메소드들

메소드 설명
ApplyTextFormattingProperty ( System.Xml.Linq.XName textFormatPropName, string value, object content ) : void
CreateEdit ( EditType t, System.DateTime edit_time, object content ) : System.Xml.Linq.XElement

Creates an Edit either a ins or a del with the specified content and date

CreatePicture ( DocX document, string id, string name, string descr ) : Picture

Insert a Picture at the end of this paragraph.

Insert a Picture into this Paragraph at a specified index.

Create a new Picture.

GetElementTextLength ( System.Xml.Linq.XElement run ) : int
GetFirstRunEffectedByEdit ( int index, EditType type = EditType.ins ) : Run
GetFirstRunEffectedByEditRecursive ( System.Xml.Linq.XElement Xml, int index, int &count, Run &theOne, EditType type ) : void
GetOrCreate_pPr ( ) : System.Xml.Linq.XElement

If the pPr element doesent exist it is created, either way it is returned by this function.

GetOrCreate_pPr_ind ( ) : System.Xml.Linq.XElement

If the ind element doesent exist it is created, either way it is returned by this function.

GetOrGenerateRel ( Novacode.Hyperlink h ) : string
GetOrGenerateRel ( Picture p ) : string
GetParagraphNumberProperties ( ) : System.Xml.Linq.XElement
InsertHyperlink ( int index, Novacode.Hyperlink h ) : Paragraph
Paragraph ( DocX document, System.Xml.Linq.XElement xml, int startIndex, ContainerType parent = ContainerType.None ) : System
RebuildDocProperties ( ) : void
RemoveHyperlinkRecursive ( System.Xml.Linq.XElement xml, int index, int &count, bool &found ) : void
ReplaceAtBookmark_Add ( string toInsert, System.Xml.Linq.XElement bookmark ) : void
SplitEdit ( System.Xml.Linq.XElement edit, int index, EditType type ) : System.Xml.Linq.XElement[]

메소드 상세

Append() 공개 메소드

Append text to this Paragraph.
public Append ( string text ) : Paragraph
text string The text to append.
리턴 Paragraph

AppendBookmark() 공개 메소드

public AppendBookmark ( String bookmarkName ) : Paragraph
bookmarkName String
리턴 Paragraph

AppendDocProperty() 공개 메소드

Append a field of type document property, this field will display the custom property cp, at the end of this paragraph.
public AppendDocProperty ( CustomProperty cp, bool trackChanges = false, Formatting f = null ) : Paragraph
cp CustomProperty The custom property to display.
trackChanges bool
f Formatting The formatting to use for this text.
리턴 Paragraph

AppendEquation() 공개 메소드

Add an equation to a document.
public AppendEquation ( String equation ) : Paragraph
equation String The Equation to append.
리턴 Paragraph

AppendHyperlink() 공개 메소드

Append a hyperlink to a Paragraph.
public AppendHyperlink ( Novacode.Hyperlink h ) : Paragraph
h Novacode.Hyperlink The hyperlink to append.
리턴 Paragraph

AppendLine() 공개 메소드

Append a new line to this Paragraph.
public AppendLine ( ) : Paragraph
리턴 Paragraph

AppendLine() 공개 메소드

Append text on a new line to this Paragraph.
public AppendLine ( string text ) : Paragraph
text string The text to append.
리턴 Paragraph

AppendPageCount() 공개 메소드

Append a PageCount place holder onto the end of a Paragraph.
public AppendPageCount ( PageNumberFormat pnf ) : void
pnf PageNumberFormat The PageNumberFormat can be normal: (1, 2, ...) or Roman: (I, II, ...)
리턴 void

AppendPageNumber() 공개 메소드

Append a PageNumber place holder onto the end of a Paragraph.
public AppendPageNumber ( PageNumberFormat pnf ) : void
pnf PageNumberFormat The PageNumberFormat can be normal: (1, 2, ...) or Roman: (I, II, ...)
리턴 void

AppendPicture() 공개 메소드

Add an image to a document, create a custom view of that image (picture) and then insert it into a Paragraph using append.
public AppendPicture ( Picture p ) : Paragraph
p Picture The Picture to append.
리턴 Paragraph

Bold() 공개 메소드

For use with Append() and AppendLine()
public Bold ( ) : Paragraph
리턴 Paragraph

CapsStyle() 공개 메소드

For use with Append() and AppendLine()
public CapsStyle ( CapsStyle capsStyle ) : Paragraph
capsStyle CapsStyle The caps style to apply to the last appended text.
리턴 Paragraph

Color() 공개 메소드

For use with Append() and AppendLine()
public Color ( Color c ) : Paragraph
c Color A color to use on the appended text.
리턴 Paragraph

Culture() 공개 메소드

For use with Append() and AppendLine()
public Culture ( CultureInfo culture ) : Paragraph
culture System.Globalization.CultureInfo The CultureInfo for text
리턴 Paragraph

CurentCulture() 공개 메소드

For use with Append() and AppendLine()
public CurentCulture ( ) : Paragraph
리턴 Paragraph

FindAll() 공개 메소드

Find all instances of a string in this paragraph and return their indexes in a List.
public FindAll ( string str ) : List
str string The string to find
리턴 List

FindAll() 공개 메소드

Find all instances of a string in this paragraph and return their indexes in a List.
public FindAll ( string str, RegexOptions options ) : List
str string The string to find
options RegexOptions The options to use when finding a string match.
리턴 List

FindAllByPattern() 공개 메소드

Find all unique instances of the given Regex Pattern
public FindAllByPattern ( string str, RegexOptions options ) : List
str string
options RegexOptions
리턴 List

Font() 공개 메소드

For use with Append() and AppendLine()
public Font ( Font fontFamily ) : Paragraph
fontFamily System.Drawing.Font The font to use for the appended text.
리턴 Paragraph

Font() 공개 메소드

For use with Append() and AppendLine()
public Font ( string fontName ) : Paragraph
fontName string The font to use for the appended text.
리턴 Paragraph

FontSize() 공개 메소드

For use with Append() and AppendLine()
public FontSize ( double fontSize ) : Paragraph
fontSize double The font size to use for the appended text.
리턴 Paragraph

GetBookmarks() 공개 메소드

public GetBookmarks ( ) : IEnumerable
리턴 IEnumerable

Hide() 공개 메소드

For use with Append() and AppendLine()
public Hide ( ) : Paragraph
리턴 Paragraph

Highlight() 공개 메소드

For use with Append() and AppendLine()
public Highlight ( Highlight highlight ) : Paragraph
highlight Highlight The highlight to apply to the last appended text.
리턴 Paragraph

InsertAtBookmark() 공개 메소드

public InsertAtBookmark ( string toInsert, string bookmarkName ) : void
toInsert string
bookmarkName string
리턴 void

InsertDocProperty() 공개 메소드

Insert a field of type document property, this field will display the custom property cp, at the end of this paragraph.
public InsertDocProperty ( CustomProperty cp, bool trackChanges = false, Formatting f = null ) : DocProperty
cp CustomProperty The custom property to display.
trackChanges bool
f Formatting The formatting to use for this text.
리턴 DocProperty

InsertHorizontalLine() 공개 메소드

public InsertHorizontalLine ( string lineType = "single", int size = 6, int space = 1, string color = "auto" ) : void
lineType string
size int
space int
color string
리턴 void

InsertHyperlink() 공개 메소드

This function inserts a hyperlink into a Paragraph at a specified character index.
public InsertHyperlink ( Novacode.Hyperlink h, int index ) : Paragraph
h Novacode.Hyperlink The hyperlink to insert.
index int The index to insert at.
리턴 Paragraph

InsertPageBreakAfterSelf() 공개 메소드

Insert a page break after a Paragraph.
public InsertPageBreakAfterSelf ( ) : void
리턴 void

InsertPageBreakBeforeSelf() 공개 메소드

Insert a page break before a Paragraph.
public InsertPageBreakBeforeSelf ( ) : void
리턴 void

InsertPageCount() 공개 메소드

Insert a PageCount place holder into a Paragraph. This place holder should only be inserted into a Header or Footer Paragraph. Word will not automatically update this field if it is inserted into a document level Paragraph.
public InsertPageCount ( PageNumberFormat pnf, int index ) : void
pnf PageNumberFormat The PageNumberFormat can be normal: (1, 2, ...) or Roman: (I, II, ...)
index int The text index to insert this PageCount place holder at.
리턴 void

InsertPageNumber() 공개 메소드

Insert a PageNumber place holder into a Paragraph. This place holder should only be inserted into a Header or Footer Paragraph. Word will not automatically update this field if it is inserted into a document level Paragraph.
public InsertPageNumber ( PageNumberFormat pnf, int index ) : void
pnf PageNumberFormat The PageNumberFormat can be normal: (1, 2, ...) or Roman: (I, II, ...)
index int The text index to insert this PageNumber place holder at.
리턴 void

InsertParagraphAfterSelf() 공개 메소드

Insert a Paragraph after this Paragraph, this Paragraph may have come from the same or another document.
public InsertParagraphAfterSelf ( Paragraph p ) : Paragraph
p Paragraph The Paragraph to insert.
리턴 Paragraph

InsertParagraphAfterSelf() 공개 메소드

Insert a new Paragraph after this Paragraph.
public InsertParagraphAfterSelf ( string text ) : Paragraph
text string The initial text for this new Paragraph.
리턴 Paragraph

InsertParagraphAfterSelf() 공개 메소드

Insert a new Paragraph after this Paragraph.
public InsertParagraphAfterSelf ( string text, bool trackChanges ) : Paragraph
text string The initial text for this new Paragraph.
trackChanges bool Should this insertion be tracked as a change?
리턴 Paragraph

InsertParagraphAfterSelf() 공개 메소드

Insert a new Paragraph after this Paragraph.
public InsertParagraphAfterSelf ( string text, bool trackChanges, Formatting formatting ) : Paragraph
text string The initial text for this new Paragraph.
trackChanges bool Should this insertion be tracked as a change?
formatting Formatting The formatting to apply to this insertion.
리턴 Paragraph

InsertParagraphBeforeSelf() 공개 메소드

Insert a Paragraph before this Paragraph, this Paragraph may have come from the same or another document.
public InsertParagraphBeforeSelf ( Paragraph p ) : Paragraph
p Paragraph The Paragraph to insert.
리턴 Paragraph

InsertParagraphBeforeSelf() 공개 메소드

Insert a new Paragraph before this Paragraph.
public InsertParagraphBeforeSelf ( string text ) : Paragraph
text string The initial text for this new Paragraph.
리턴 Paragraph

InsertParagraphBeforeSelf() 공개 메소드

Insert a new Paragraph before this Paragraph.
public InsertParagraphBeforeSelf ( string text, bool trackChanges ) : Paragraph
text string The initial text for this new Paragraph.
trackChanges bool Should this insertion be tracked as a change?
리턴 Paragraph

InsertParagraphBeforeSelf() 공개 메소드

Insert a new Paragraph before this Paragraph.
public InsertParagraphBeforeSelf ( string text, bool trackChanges, Formatting formatting ) : Paragraph
text string The initial text for this new Paragraph.
trackChanges bool Should this insertion be tracked as a change?
formatting Formatting The formatting to apply to this insertion.
리턴 Paragraph

InsertPicture() 공개 메소드

Insert a Picture into a Paragraph at the given text index. If not index is provided defaults to 0.
public InsertPicture ( Picture p, int index ) : Paragraph
p Picture The Picture to insert.
index int The text index to insert at.
리턴 Paragraph

InsertTableAfterSelf() 공개 메소드

Insert a new Table after this Paragraph.
public InsertTableAfterSelf ( Table t ) : Table
t Table The Table t to be inserted.
리턴 Table

InsertTableAfterSelf() 공개 메소드

Insert a new Table into this document after this Paragraph.
public InsertTableAfterSelf ( int rowCount, int columnCount ) : Table
rowCount int The number of rows this Table should have.
columnCount int The number of columns this Table should have.
리턴 Table

InsertTableBeforeSelf() 공개 메소드

Insert a new Table before this Paragraph, this Table can be from this document or another document.
public InsertTableBeforeSelf ( Table t ) : Table
t Table The Table t to be inserted.
리턴 Table

InsertTableBeforeSelf() 공개 메소드

Insert a new Table into this document before this Paragraph.
public InsertTableBeforeSelf ( int rowCount, int columnCount ) : Table
rowCount int The number of rows this Table should have.
columnCount int The number of columns this Table should have.
리턴 Table

InsertText() 공개 메소드

Inserts a specified instance of System.String into a Novacode.DocX.Paragraph at a specified index position.
public InsertText ( int index, string value, bool trackChanges = false, Formatting formatting = null ) : void
index int The index position of the insertion.
value string The System.String to insert.
trackChanges bool Flag this insert as a change.
formatting Formatting The text formatting.
리턴 void

InsertText() 공개 메소드

Inserts a specified instance of System.String into a Novacode.DocX.Paragraph at a specified index position.
public InsertText ( string value, bool trackChanges = false, Formatting formatting = null ) : void
value string The System.String to insert.
trackChanges bool Flag this insert as a change.
formatting Formatting The text formatting.
리턴 void

Italic() 공개 메소드

For use with Append() and AppendLine()
public Italic ( ) : Paragraph
리턴 Paragraph

KeepLinesTogether() 공개 메소드

Keep all lines in this paragraph together on a page
public KeepLinesTogether ( bool keepTogether = true ) : Paragraph
keepTogether bool
리턴 Paragraph

KeepWithNext() 공개 메소드

This paragraph will be kept on the same page as the next paragraph
public KeepWithNext ( bool keepWithNext = true ) : Paragraph
keepWithNext bool
리턴 Paragraph

Kerning() 공개 메소드

public Kerning ( int kerning ) : Paragraph
kerning int
리턴 Paragraph

Misc() 공개 메소드

For use with Append() and AppendLine()
public Misc ( Misc misc ) : Paragraph
misc Misc The miscellaneous property to set.
리턴 Paragraph

PercentageScale() 공개 메소드

public PercentageScale ( int percentageScale ) : Paragraph
percentageScale int
리턴 Paragraph

Position() 공개 메소드

public Position ( double position ) : Paragraph
position double
리턴 Paragraph

Remove() 공개 메소드

Remove this Paragraph from the document.
public Remove ( bool trackChanges ) : void
trackChanges bool Should this remove be tracked as a change?
리턴 void

RemoveHyperlink() 공개 메소드

Remove the Hyperlink at the provided index. The first hyperlink is at index 0. Using a negative index or an index greater than the index of the last hyperlink will cause an ArgumentOutOfRangeException() to be thrown.
public RemoveHyperlink ( int index ) : void
index int The index of the hyperlink to be removed.
리턴 void

RemoveText() 공개 메소드

Removes characters from a Novacode.DocX.Paragraph.
public RemoveText ( int index, bool trackChanges = false ) : void
index int The position to begin deleting characters.
trackChanges bool Track changes
리턴 void

RemoveText() 공개 메소드

Removes characters from a Novacode.DocX.Paragraph.
public RemoveText ( int index, int count, bool trackChanges = false ) : void
index int The position to begin deleting characters.
count int The number of characters to delete
trackChanges bool Track changes
리턴 void

ReplaceAtBookmark() 공개 메소드

public ReplaceAtBookmark ( string toInsert, string bookmarkName ) : void
toInsert string
bookmarkName string
리턴 void

ReplaceText() 공개 메소드

Find pattern regex must return a group match.
public ReplaceText ( string findPattern, string>.Func regexMatchHandler, bool trackChanges = false, RegexOptions options = RegexOptions.None, Formatting newFormatting = null, Formatting matchFormatting = null, MatchFormattingOptions fo = MatchFormattingOptions.SubsetMatch ) : void
findPattern string Regex pattern that must include one group match. ie (.*)
regexMatchHandler string>.Func A func that accepts the matching find grouping text and returns a replacement value
trackChanges bool
options RegexOptions
newFormatting Formatting
matchFormatting Formatting
fo MatchFormattingOptions
리턴 void

ReplaceText() 공개 메소드

Replaces all occurrences of a specified System.String in this instance, with another specified System.String.
public ReplaceText ( string oldValue, string newValue, bool trackChanges = false, RegexOptions options = RegexOptions.None, Formatting newFormatting = null, Formatting matchFormatting = null, MatchFormattingOptions fo = MatchFormattingOptions.SubsetMatch, bool escapeRegEx = true, bool useRegExSubstitutions = false ) : void
oldValue string A System.String to be replaced.
newValue string A System.String to replace all occurrences of oldValue.
trackChanges bool Track changes
options RegexOptions A bitwise OR combination of RegexOption enumeration options.
newFormatting Formatting The formatting to apply to the text being inserted.
matchFormatting Formatting The formatting that the text must match in order to be replaced.
fo MatchFormattingOptions How should formatting be matched?
escapeRegEx bool True if the oldValue needs to be escaped, otherwise false. If it represents a valid RegEx pattern this should be false.
useRegExSubstitutions bool True if RegEx-like replace should be performed, i.e. if newValue contains RegEx substitutions. Does not perform named-group substitutions (only numbered groups).
리턴 void

Script() 공개 메소드

For use with Append() and AppendLine()
public Script ( System.Script script ) : Paragraph
script System.Script The script style to apply to the last appended text.
리턴 Paragraph

SetLineSpacing() 공개 메소드

Set the linespacing for this paragraph manually.
public SetLineSpacing ( LineSpacingType spacingType, float spacingFloat ) : void
spacingType LineSpacingType The type of spacing to be set, can be either Before, After or Line (Standard line spacing).
spacingFloat float A float value of the amount of spacing. Equals the value that van be set in Word using the "Line and Paragraph spacing" button.
리턴 void

SetLineSpacing() 공개 메소드

Set the linespacing for this paragraph using the Auto value.
public SetLineSpacing ( LineSpacingTypeAuto spacingType ) : void
spacingType LineSpacingTypeAuto The type of spacing to be set automatically. Using Auto will set both Before and After. None will remove any linespacing.
리턴 void

Spacing() 공개 메소드

public Spacing ( double spacing ) : Paragraph
spacing double
리턴 Paragraph

SpacingAfter() 공개 메소드

public SpacingAfter ( double spacingAfter ) : Paragraph
spacingAfter double
리턴 Paragraph

SpacingBefore() 공개 메소드

public SpacingBefore ( double spacingBefore ) : Paragraph
spacingBefore double
리턴 Paragraph

StrikeThrough() 공개 메소드

For use with Append() and AppendLine()
public StrikeThrough ( StrikeThrough strikeThrough ) : Paragraph
strikeThrough StrikeThrough The strike through style to used on the last appended text.
리턴 Paragraph

UnderlineColor() 공개 메소드

For use with Append() and AppendLine()
public UnderlineColor ( Color underlineColor ) : Paragraph
underlineColor Color The underline color to use, if no underline is set, a single line will be used.
리턴 Paragraph

UnderlineStyle() 공개 메소드

For use with Append() and AppendLine()
public UnderlineStyle ( UnderlineStyle underlineStyle ) : Paragraph
underlineStyle UnderlineStyle The underline style to use for the appended text.
리턴 Paragraph

ValidateBookmark() 공개 메소드

public ValidateBookmark ( string bookmarkName ) : bool
bookmarkName string
리턴 bool

프로퍼티 상세

ListItemType 공개적으로 프로퍼티

Determine if the list element is a numbered list of bulleted list element
public ListItemType ListItemType
리턴 ListItemType

ParentContainer 공개적으로 프로퍼티

public ContainerType ParentContainer
리턴 ContainerType