C# Класс Novacode.Container

Наследование: DocXElement
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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