API Reference
Class
WordTableConditionalFormattingBuilder
Provides a fluent API for defining and applying multiple conditional formatting rules.
Inheritance
- Object
- WordTableConditionalFormattingBuilder
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Methods
AddRule 5 overloads
public WordTableConditionalFormattingBuilder AddRule(String columnName, String matchText, TextMatchType matchType, OfficeColor matchFillColor, Nullable<OfficeColor> matchFontColor = null, Nullable<OfficeColor> noMatchFillColor = null, Nullable<OfficeColor> noMatchFontColor = null, Boolean ignoreCase = true, IEnumerable<String> highlightColumns = null, Action<WordParagraph> matchTextFormat = null, Action<WordParagraph> noMatchTextFormat = null) #Returns:
WordTableConditionalFormattingBuilderAdds a conditional formatting rule based on a column value.
Parameters
- columnName System.String
- matchText System.String
- matchType OfficeIMO.Word.TextMatchType
- matchFillColorHex System.String = null
- matchFontColorHex System.String = null
- noMatchFillColorHex System.String = null
- noMatchFontColorHex System.String = null
- ignoreCase System.Boolean = true
- highlightColumns System.Collections.Generic.IEnumerable{System.String} = null
- matchTextFormat System.Action{OfficeIMO.Word.WordParagraph} = null
- noMatchTextFormat System.Action{OfficeIMO.Word.WordParagraph} = null
AddRule(System.String columnName, System.String matchText, OfficeIMO.Word.TextMatchType matchType, OfficeIMO.Drawing.OfficeColor matchFillColor, System.Nullable{OfficeIMO.Drawing.OfficeColor} matchFontColor, System.Nullable{OfficeIMO.Drawing.OfficeColor} noMatchFillColor, System.Nullable{OfficeIMO.Drawing.OfficeColor} noMatchFontColor, System.Boolean ignoreCase, System.Collections.Generic.IEnumerable{System.String} highlightColumns, System.Action{OfficeIMO.Word.WordParagraph} matchTextFormat, System.Action{OfficeIMO.Word.WordParagraph} noMatchTextFormat) #Adds a conditional formatting rule using OfficeColor parameters.
Parameters
- columnName System.String
- matchText System.String
- matchType OfficeIMO.Word.TextMatchType
- matchFillColor OfficeIMO.Drawing.OfficeColor
- matchFontColor System.Nullable{OfficeIMO.Drawing.OfficeColor}
- noMatchFillColor System.Nullable{OfficeIMO.Drawing.OfficeColor}
- noMatchFontColor System.Nullable{OfficeIMO.Drawing.OfficeColor}
- ignoreCase System.Boolean
- highlightColumns System.Collections.Generic.IEnumerable{System.String}
- matchTextFormat System.Action{OfficeIMO.Word.WordParagraph}
- noMatchTextFormat System.Action{OfficeIMO.Word.WordParagraph}
public WordTableConditionalFormattingBuilder AddRule(IEnumerable<ValueTuple<String, String, TextMatchType>> conditions, Boolean matchAll, OfficeColor matchFillColor, Nullable<OfficeColor> matchFontColor = null, Nullable<OfficeColor> noMatchFillColor = null, Nullable<OfficeColor> noMatchFontColor = null, Boolean ignoreCase = true, IEnumerable<String> highlightColumns = null, Action<WordParagraph> matchTextFormat = null, Action<WordParagraph> noMatchTextFormat = null) #Returns:
WordTableConditionalFormattingBuilderAdds a conditional formatting rule based on multiple column values.
Parameters
- conditions System.Collections.Generic.IEnumerable{System.ValueTuple{System.String,System.String,OfficeIMO.Word.TextMatchType}}
- matchAll System.Boolean
- matchFillColorHex System.String = null
- matchFontColorHex System.String = null
- noMatchFillColorHex System.String = null
- noMatchFontColorHex System.String = null
- ignoreCase System.Boolean = true
- highlightColumns System.Collections.Generic.IEnumerable{System.String} = null
- matchTextFormat System.Action{OfficeIMO.Word.WordParagraph} = null
- noMatchTextFormat System.Action{OfficeIMO.Word.WordParagraph} = null
AddRule(System.Collections.Generic.IEnumerable{System.ValueTuple{System.String,System.String,OfficeIMO.Word.TextMatchType}} conditions, System.Boolean matchAll, OfficeIMO.Drawing.OfficeColor matchFillColor, System.Nullable{OfficeIMO.Drawing.OfficeColor} matchFontColor, System.Nullable{OfficeIMO.Drawing.OfficeColor} noMatchFillColor, System.Nullable{OfficeIMO.Drawing.OfficeColor} noMatchFontColor, System.Boolean ignoreCase, System.Collections.Generic.IEnumerable{System.String} highlightColumns, System.Action{OfficeIMO.Word.WordParagraph} matchTextFormat, System.Action{OfficeIMO.Word.WordParagraph} noMatchTextFormat) #Adds a conditional formatting rule based on multiple column values using OfficeColor parameters.
Parameters
- conditions System.Collections.Generic.IEnumerable{System.ValueTuple{System.String,System.String,OfficeIMO.Word.TextMatchType}}
- matchAll System.Boolean
- matchFillColor OfficeIMO.Drawing.OfficeColor
- matchFontColor System.Nullable{OfficeIMO.Drawing.OfficeColor}
- noMatchFillColor System.Nullable{OfficeIMO.Drawing.OfficeColor}
- noMatchFontColor System.Nullable{OfficeIMO.Drawing.OfficeColor}
- ignoreCase System.Boolean
- highlightColumns System.Collections.Generic.IEnumerable{System.String}
- matchTextFormat System.Action{OfficeIMO.Word.WordParagraph}
- noMatchTextFormat System.Action{OfficeIMO.Word.WordParagraph}
public WordTableConditionalFormattingBuilder AddRule(Func<WordTableRow, Boolean> predicate, Action<WordTableRow> matchAction, Action<WordTableRow> noMatchAction = null) #Returns:
WordTableConditionalFormattingBuilderAdds a conditional formatting rule using a predicate.
Parameters
- predicate System.Func{OfficeIMO.Word.WordTableRow,System.Boolean}
- matchAction System.Action{OfficeIMO.Word.WordTableRow}
- noMatchAction System.Action{OfficeIMO.Word.WordTableRow} = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object