Back to Devexpress

RepositoryItemHyperLinkEdit.TextEditStyle Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemhyperlinkedit-99c9f7f3.md

latest4.4 KB
Original Source

RepositoryItemHyperLinkEdit.TextEditStyle Property

Gets or sets the style in which text is displayed and edited in the editor.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(TextEditStyles.DisableTextEditor)]
[DXCategory("Behavior")]
public override TextEditStyles TextEditStyle { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(TextEditStyles.DisableTextEditor)>
Public Overrides Property TextEditStyle As TextEditStyles

Property Value

TypeDefaultDescription
TextEditStylesDisableTextEditor

The TextEditStyles value determining the editing style.

|

Available values:

NameDescription
Standard

A button editor works in its normal way. Editing and selecting text is allowed.

| | HideTextEditor |

The text editing region is not visible and the editor displays only buttons contained in the current button editor. If no buttons can be displayed (for instance because of setting the EditorButton.Visible property to False), the editor displays an empty region in this case.

| | DisableTextEditor |

A button editor is displayed in its normal way. However, editing and selecting text is not allowed. If you want to enable a user to select text but disable text modifications, you can set the text editing style to Standard and set the RepositoryItem.ReadOnly property to true.

|

Remarks

A hyperlink editor overrides the base RepositoryItemButtonEdit.TextEditStyle property by redefining its default value. The editor does not change the property’s functionality. Refer to the RepositoryItemButtonEdit.TextEditStyle topic for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TextEditStyle 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.

xaf-how-to-show-a-hyper-link-url-email-etc-for-a-business-class-property/CS/EFCore/HyperLinkEditorEF/HyperLinkEditorEF.Win/Editors/WinHyperLinkStringPropertyEditor.cs#L32

csharp
hyperLinkProperties.SingleClick = View is ListView;
hyperLinkProperties.TextEditStyle = TextEditStyles.Standard;
hyperLinkProperties.OpenLink += hyperLinkProperties_OpenLink;

See Also

TextEditStyle

RepositoryItemHyperLinkEdit Class

RepositoryItemHyperLinkEdit Members

DevExpress.XtraEditors.Repository Namespace