officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-contentcontrolbase-c97735ee.md
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
Color Color { get; set; }
Property Color As Color
| Type | Description |
|---|---|
| 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
{
contentControl.Color = Color.Red;
switch (contentControl.ControlType)
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/ContentControls.cs#L57
{
contentControl.Color = Color.Red;
switch (contentControl.ControlType)
word-document-api-examples/CS/CodeExamples/ContentControlsActions.cs#L59
foreach (var contentControl in contentControls) {
contentControl.Color = Color.Red;
switch (contentControl.ControlType) {
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/ContentControls.vb#L47
For Each contentControl In contentControls
contentControl.Color = System.Drawing.Color.Red
Select Case contentControl.ControlType
See Also