Back to Devexpress

ContentControlBase.Color Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-contentcontrolbase-c97735ee.md

latest3.2 KB
Original Source

ContentControlBase.Color Property

Gets or sets the color applied to the content control’s borders.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
Color Color { get; set; }
vb
Property Color As Color

Property Value

TypeDescription
Color

The color applied to the content control borders.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Color property.

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.

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/ContentControlActions.cs#L56

csharp
{
    contentControl.Color = Color.Red;
    switch (contentControl.ControlType)

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/ContentControls.cs#L57

csharp
{
    contentControl.Color = Color.Red;
    switch (contentControl.ControlType)

word-document-api-examples/CS/CodeExamples/ContentControlsActions.cs#L59

csharp
foreach (var contentControl in contentControls) {
    contentControl.Color = Color.Red;
    switch (contentControl.ControlType) {

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/ContentControls.vb#L47

vb
For Each contentControl In contentControls
    contentControl.Color = System.Drawing.Color.Red
    Select Case contentControl.ControlType

See Also

ContentControlBase Interface

ContentControlBase Members

DevExpress.XtraRichEdit.API.Native Namespace