API Reference
Class
WordTableConditionalFormattingBuilder
Provides a fluent API for defining and applying multiple conditional formatting rules.
Inheritance
- Object
- WordTableConditionalFormattingBuilder
Methods
AddRule 5 overloads
public WordTableConditionalFormattingBuilder AddRule(String columnName, String matchText, TextMatchType matchType, Color matchFillColor, Nullable<Color> matchFontColor = null, Nullable<Color> noMatchFillColor = null, Nullable<Color> 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, SixLabors.ImageSharp.Color matchFillColor, System.Nullable{SixLabors.ImageSharp.Color} matchFontColor, System.Nullable{SixLabors.ImageSharp.Color} noMatchFillColor, System.Nullable{SixLabors.ImageSharp.Color} 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 Color parameters.
Parameters
- columnName System.String
- matchText System.String
- matchType OfficeIMO.Word.TextMatchType
- matchFillColor SixLabors.ImageSharp.Color
- matchFontColor System.Nullable{SixLabors.ImageSharp.Color}
- noMatchFillColor System.Nullable{SixLabors.ImageSharp.Color}
- noMatchFontColor System.Nullable{SixLabors.ImageSharp.Color}
- 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, Color matchFillColor, Nullable<Color> matchFontColor = null, Nullable<Color> noMatchFillColor = null, Nullable<Color> 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, SixLabors.ImageSharp.Color matchFillColor, System.Nullable{SixLabors.ImageSharp.Color} matchFontColor, System.Nullable{SixLabors.ImageSharp.Color} noMatchFillColor, System.Nullable{SixLabors.ImageSharp.Color} 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 Color parameters.
Parameters
- conditions System.Collections.Generic.IEnumerable{System.ValueTuple{System.String,System.String,OfficeIMO.Word.TextMatchType}}
- matchAll System.Boolean
- matchFillColor SixLabors.ImageSharp.Color
- matchFontColor System.Nullable{SixLabors.ImageSharp.Color}
- noMatchFillColor System.Nullable{SixLabors.ImageSharp.Color}
- noMatchFontColor System.Nullable{SixLabors.ImageSharp.Color}
- 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