officefileapi-devexpress-dot-xtrarichedit-dot-documentsaveoptions.md
Gets or sets the file name into which the document is saved or from which it is loaded.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public string CurrentFileName { get; set; }
Public Property CurrentFileName As String
| Type | Description |
|---|---|
| String |
A String which represents the current file name (including the path and the file extension).
|
You can access this nested property as listed below:
| Object Type | Path to CurrentFileName |
|---|---|
| RichEditControlOptionsBase |
.DocumentSaveOptions .CurrentFileName
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the CurrentFileName 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.
how-to-load-a-document-into-the-richedit-control/CS/LoadDocumentExample/Form1.cs#L19
{
string documentName = richEditControl1.Options.DocumentSaveOptions.CurrentFileName;
string msg;
// Determine language by file extension.
string ext = Path.GetExtension(syntaxEditor.Options.DocumentSaveOptions.CurrentFileName);
ParserLanguageID lang_ID = ParserLanguage.FromFileExtension(ext);
wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeUtils/SyntaxHightlight.cs#L91
private ITokenCategoryHelper CreateTokenizer() {
string fileName = editor.Options.DocumentSaveOptions.CurrentFileName;
string extenstion;
{
string fileName = editor.Options.DocumentSaveOptions.CurrentFileName;
string extenstion;
winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeUtils/SyntaxHightlight.cs#L91
private ITokenCategoryHelper CreateTokenizer() {
string fileName = editor.Options.DocumentSaveOptions.CurrentFileName;
string extenstion;
how-to-load-a-document-into-the-richedit-control/VB/LoadDocumentExample/Form1.vb#L17
Private Sub RichEditControl1_DocumentLoaded(ByVal sender As Object, ByVal e As EventArgs)
Dim documentName As String = richEditControl1.Options.DocumentSaveOptions.CurrentFileName
Dim msg As String
' Determine language by file extension.
Dim ext As String = Path.GetExtension(syntaxEditor.Options.DocumentSaveOptions.CurrentFileName)
Dim lang_ID As ParserLanguageID = ParserLanguage.FromFileExtension(ext)
wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeUtils/SyntaxHightlight.vb#L93
Private Function CreateTokenizer() As ITokenCategoryHelper
Dim fileName As String = editor.Options.DocumentSaveOptions.CurrentFileName
Dim extenstion As String
Private Function CreateTokenizer() As ITokenCategoryHelper
Dim fileName As String = editor.Options.DocumentSaveOptions.CurrentFileName
Dim extenstion As String
winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeUtils/SyntaxHightlight.vb#L93
Private Function CreateTokenizer() As ITokenCategoryHelper
Dim fileName As String = editor.Options.DocumentSaveOptions.CurrentFileName
Dim extenstion As String
See Also