C# 클래스 Novacode.Container

상속: DocXElement
파일 보기 프로젝트 열기: WordDocX/DocX

공개 프로퍼티들

프로퍼티 타입 설명
ParentContainer ContainerType

공개 메소드들

메소드 설명
FindAll ( string str ) : List
FindAll ( string str, RegexOptions options ) : List
FindUniqueByPattern ( string pattern, RegexOptions options ) : List

Find all unique instances of the given Regex Pattern, returning the list of the unique strings found

InsertAtBookmark ( string toInsert, string bookmarkName ) : void
InsertBookmark ( String bookmarkName ) : Paragraph
InsertEquation ( string equation ) : Paragraph
InsertList ( Novacode.List list ) : Novacode.List
InsertList ( Novacode.List list, Font fontFamily, double fontSize ) : Novacode.List
InsertList ( Novacode.List list, double fontSize ) : Novacode.List
InsertList ( int index, Novacode.List list ) : Novacode.List
InsertParagraph ( ) : Paragraph
InsertParagraph ( Paragraph p ) : Paragraph
InsertParagraph ( int index, Paragraph p ) : Paragraph
InsertParagraph ( int index, string text, bool trackChanges ) : Paragraph
InsertParagraph ( int index, string text, bool trackChanges, Formatting formatting ) : Paragraph
InsertParagraph ( string text ) : Paragraph
InsertParagraph ( string text, bool trackChanges ) : Paragraph
InsertParagraph ( string text, bool trackChanges, Formatting formatting ) : Paragraph
InsertSection ( ) : void
InsertSection ( bool trackChanges ) : void
InsertSectionPageBreak ( bool trackChanges = false ) : void
InsertTable ( Table t ) : Table
InsertTable ( int index, Table t ) : Table
InsertTable ( int rowCount, int columnCount ) : Table
InsertTable ( int index, int rowCount, int columnCount ) : Table
RemoveParagraph ( Paragraph p ) : bool

Removes paragraph

RemoveParagraphAt ( int index ) : bool

Removes paragraph at specified position

RemoveTextInGivenFormat ( Formatting matchFormatting, MatchFormattingOptions fo = MatchFormattingOptions.SubsetMatch ) : int

Removes all items with required formatting

ReplaceText ( string searchValue, string>.Func regexMatchHandler, bool trackChanges = false, RegexOptions options = RegexOptions.None, Formatting newFormatting = null, Formatting matchFormatting = null, MatchFormattingOptions formattingOptions = MatchFormattingOptions.SubsetMatch ) : void

ReplaceText ( string searchValue, string newValue, bool trackChanges = false, RegexOptions options = RegexOptions.None, Formatting newFormatting = null, Formatting matchFormatting = null, MatchFormattingOptions formattingOptions = MatchFormattingOptions.SubsetMatch, bool escapeRegEx = true, bool useRegExSubstitutions = false ) : void
SetDirection ( Direction direction ) : void

Sets the Direction of content.

ValidateBookmarks ( ) : string[]

비공개 메소드들

메소드 설명
Container ( DocX document, System.Xml.Linq.XElement xml ) : System
GetAttribute ( System.Xml.Linq.XElement e, string localName, string attributeName ) : string
GetContents ( bool deepSearch = false ) : List
GetListItemType ( string styleName ) : ListItemType
GetListItemType ( Paragraph p ) : void
GetParagraphs ( bool deepSearch = false ) : List
GetParagraphsRecursive ( System.Xml.Linq.XElement Xml, int &index, List &paragraphs, bool deepSearch = false ) : void
GetParent ( Paragraph newParagraph ) : void
GetParentFromXmlName ( string xmlName ) : ContainerType
RemoveTextWithFormatRecursive ( System.Xml.Linq.XElement element, Formatting matchFormatting, MatchFormattingOptions fo ) : int

메소드 상세

FindAll() 공개 메소드

public FindAll ( string str ) : List
str string
리턴 List

FindAll() 공개 메소드

public FindAll ( string str, RegexOptions options ) : List
str string
options RegexOptions
리턴 List

FindUniqueByPattern() 공개 메소드

Find all unique instances of the given Regex Pattern, returning the list of the unique strings found
public FindUniqueByPattern ( string pattern, RegexOptions options ) : List
pattern string
options RegexOptions
리턴 List

InsertAtBookmark() 공개 메소드

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

InsertBookmark() 공개 메소드

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

InsertEquation() 공개 메소드

public InsertEquation ( string equation ) : Paragraph
equation string
리턴 Paragraph

InsertList() 공개 메소드

public InsertList ( Novacode.List list ) : Novacode.List
list Novacode.List
리턴 Novacode.List

InsertList() 공개 메소드

public InsertList ( Novacode.List list, Font fontFamily, double fontSize ) : Novacode.List
list Novacode.List
fontFamily Font
fontSize double
리턴 Novacode.List

InsertList() 공개 메소드

public InsertList ( Novacode.List list, double fontSize ) : Novacode.List
list Novacode.List
fontSize double
리턴 Novacode.List

InsertList() 공개 메소드

public InsertList ( int index, Novacode.List list ) : Novacode.List
index int
list Novacode.List
리턴 Novacode.List

InsertParagraph() 공개 메소드

public InsertParagraph ( ) : Paragraph
리턴 Paragraph

InsertParagraph() 공개 메소드

public InsertParagraph ( Paragraph p ) : Paragraph
p Paragraph
리턴 Paragraph

InsertParagraph() 공개 메소드

public InsertParagraph ( int index, Paragraph p ) : Paragraph
index int
p Paragraph
리턴 Paragraph

InsertParagraph() 공개 메소드

public InsertParagraph ( int index, string text, bool trackChanges ) : Paragraph
index int
text string
trackChanges bool
리턴 Paragraph

InsertParagraph() 공개 메소드

public InsertParagraph ( int index, string text, bool trackChanges, Formatting formatting ) : Paragraph
index int
text string
trackChanges bool
formatting Formatting
리턴 Paragraph

InsertParagraph() 공개 메소드

public InsertParagraph ( string text ) : Paragraph
text string
리턴 Paragraph

InsertParagraph() 공개 메소드

public InsertParagraph ( string text, bool trackChanges ) : Paragraph
text string
trackChanges bool
리턴 Paragraph

InsertParagraph() 공개 메소드

public InsertParagraph ( string text, bool trackChanges, Formatting formatting ) : Paragraph
text string
trackChanges bool
formatting Formatting
리턴 Paragraph

InsertSection() 공개 메소드

public InsertSection ( ) : void
리턴 void

InsertSection() 공개 메소드

public InsertSection ( bool trackChanges ) : void
trackChanges bool
리턴 void

InsertSectionPageBreak() 공개 메소드

public InsertSectionPageBreak ( bool trackChanges = false ) : void
trackChanges bool
리턴 void

InsertTable() 공개 메소드

public InsertTable ( Table t ) : Table
t Table
리턴 Table

InsertTable() 공개 메소드

public InsertTable ( int index, Table t ) : Table
index int
t Table
리턴 Table

InsertTable() 공개 메소드

public InsertTable ( int rowCount, int columnCount ) : Table
rowCount int
columnCount int
리턴 Table

InsertTable() 공개 메소드

public InsertTable ( int index, int rowCount, int columnCount ) : Table
index int
rowCount int
columnCount int
리턴 Table

RemoveParagraph() 공개 메소드

Removes paragraph
public RemoveParagraph ( Paragraph p ) : bool
p Paragraph Paragraph to remove
리턴 bool

RemoveParagraphAt() 공개 메소드

Removes paragraph at specified position
public RemoveParagraphAt ( int index ) : bool
index int Index of paragraph to remove
리턴 bool

RemoveTextInGivenFormat() 공개 메소드

Removes all items with required formatting
public RemoveTextInGivenFormat ( Formatting matchFormatting, MatchFormattingOptions fo = MatchFormattingOptions.SubsetMatch ) : int
matchFormatting Formatting
fo MatchFormattingOptions
리턴 int

ReplaceText() 공개 메소드

public ReplaceText ( string searchValue, string>.Func regexMatchHandler, bool trackChanges = false, RegexOptions options = RegexOptions.None, Formatting newFormatting = null, Formatting matchFormatting = null, MatchFormattingOptions formattingOptions = MatchFormattingOptions.SubsetMatch ) : void
searchValue string Value to find
regexMatchHandler string>.Func A Func that accepts the matching regex search group value and passes it to this to return the replacement string
trackChanges bool Enable trackchanges
options RegexOptions Regex options
newFormatting Formatting
matchFormatting Formatting
formattingOptions MatchFormattingOptions
리턴 void

ReplaceText() 공개 메소드

public ReplaceText ( string searchValue, string newValue, bool trackChanges = false, RegexOptions options = RegexOptions.None, Formatting newFormatting = null, Formatting matchFormatting = null, MatchFormattingOptions formattingOptions = MatchFormattingOptions.SubsetMatch, bool escapeRegEx = true, bool useRegExSubstitutions = false ) : void
searchValue string
newValue string
trackChanges bool
options RegexOptions
newFormatting Formatting
matchFormatting Formatting
formattingOptions MatchFormattingOptions
escapeRegEx bool
useRegExSubstitutions bool
리턴 void

SetDirection() 공개 메소드

Sets the Direction of content.
public SetDirection ( Direction direction ) : void
direction Direction Direction either LeftToRight or RightToLeft
리턴 void

ValidateBookmarks() 공개 메소드

public ValidateBookmarks ( ) : string[]
리턴 string[]

프로퍼티 상세

ParentContainer 공개적으로 프로퍼티

public ContainerType ParentContainer
리턴 ContainerType