Skip to main content
A newer version of this page is available. .

TableConditionalStyleProperties.CreateConditionalStyle(ConditionalTableStyleFormattingTypes) Method

Creates a table style for the specified table elements and adds it to the collection.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v18.2.Core.dll

Declaration

TableConditionalStyle CreateConditionalStyle(
    ConditionalTableStyleFormattingTypes condition
)

Parameters

Name Type Description
condition ConditionalTableStyleFormattingTypes

A ConditionalTableStyleFormattingTypes enumeration value that specifies table elements to which a style can be applied.

Returns

Type Description
TableConditionalStyle

A TableConditionalStyle object.

Remarks

After a conditional style is created, you can access it using the TableStyle.ConditionalStyleProperties property and index notation. The index is the ConditionalTableStyleFormattingTypes enumeration value.

Apply a table style using the Table.Style property. Subsequently, use the Table.TableLook property to selectively apply conditional styles.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateConditionalStyle(ConditionalTableStyleFormattingTypes) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also