C1.Win.C1Editor.4
Specifies the types of content to which the inline style will be applied.
Style is applied only to characters in the range.
Style is applied only to whole paragraphs containing the text range.
Style is applied only to tables containing the range.
Style is applied only to lists containing the range.
Style is applied to any kind of content.
This type is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This type is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This type is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This type is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This interface is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This interface is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This interface is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This type is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This type is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This type is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This type is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This interface is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This interface is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This interface is for internal use only.
This member is for internal use only.
This member is for internal use only.
This member is for internal use only.
This interface is for internal use only.
This member is for internal use only.
Represents the C1Editor control.
The control has a property.
It is possible to assign an existing document to this property and it will be
displayed in the control.
The control and the document are bound.
If the document is edited within the control,
the underlying XmlDocument changes to match the edited document.
If the XmlDocument changes (in code), then the changes appear in the editor.
This sample shows how to load an XHTML string into the editor and
append a stylesheet using functions of XmlDocument.
c1Editor1.LoadXml(xhtml);
XmlElement style = c1Editor1.Document.CreateElement("style");
style.InnerXml = "strong {text-decoration:underline}";
foreach (XmlNode node in c1Editor1.Document.DocumentElement)
{
if (node.Name == "head")
{
node.AppendChild(style);
break;
}
}
Initializes a new instance of the class.
Loads a design CSS from a given file.
The base URL is inferred from the file location.
The file from which the design CSS is loaded.
Loads a design CSS from a given stream.
The stream from which the design CSS is loaded.
Base URL is not specified because this method only handles a simple, self-contained CSS.
The stream must be encoded in UTF-8.
string value = "p {color:red;}";
Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(value));
LoadDesignCSS(stream);
Loads the preview CSS from a given file.
Base URL is inferred from the file location.
The file from which the preview CSS is loaded.
Loads the preview CSS from a given stream.
The base URL is not given; it assumes a simple, self-contained CSS.
It also assumes the stream is encoded in UTF8.
The stream from which the design CSS is loaded.
string value = "p {color:red;}";
Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(value));
LoadDesignCSS(stream);
Loads the document from an XML string.
XML string to load.
Path to resolve pictures, video, links, and other resources.
True, if XML successfully loaded; otherwise, False.
Loads the document from the specified stream in XML format.
The containing the XML document to load. Path to resolve pictures, video, links, and so on.
True, if XML successfully loaded; otherwise, False.
Loads the document from the specified file in XML format.
The name of the file containing the document to load.
True, if the file is successfully loaded; otherwise, False.
Loads the document from the specified stream in RTF format.
The containing the RTF document to load. Path to resolve pictures, video, links, and so on.
True, if XML successfully loaded; otherwise, False.
Loads the document from the specified file in RTF format.
The name of the file containing the document to load.
True, if the file is successfully loaded; otherwise, False.
Saves the document to the specified file in XML format.
The name of the file where you want to save the document.
True, if the file is successfully saved; otherwise, False.
Saves the document to the specified stream in XML format.
The stream to which you want to save.
True, if the document is successfully saved; otherwise, False.
Returns the XML content of the document as a string.
XML content of the document as a string
Saves the document to the specified file in RTF format.
The name of the file where you want to save the document.
True, if the file is successfully saved; otherwise, False.
Saves the document to the specified stream in RTF format.
The stream to which you want to save.
True, if the document is successfully saved; otherwise, False.
Validates document in source mode and shows validation errors if found.
True if document was validated without errors; otherwise, False.
Fixes the document in source mode, corrects errors, makes it valid XHTML.
Begins a transaction.
Title of the started transaction.
If the is changed without using transactions, each time any of the
NodeInserted, NodeRemoved and NodeChanged events of the XmlDocument occurs, the control performs
synchronization between XML and MSHTML. Calling tells the control
it must not synchronized any changes made in XmlDocument until is called.
The and the methods of the automatically start a transaction, if
it has not been started yet.
Commits the started transaction.
If the is changed without using transactions, each time any of the
NodeInserted, NodeRemoved and NodeChanged events of the XmlDocument occurs, the control performs
synchronization between XML and MSHTML. Calling tells the control
it must not synchronized any changes made in XmlDocument until is called.
The and the methods of the automatically start a transaction, if
it has not been started yet.
Rolls back the transaction.
If the is changed without using transactions, each time any of the
NodeInserted, NodeRemoved and NodeChanged events of the XmlDocument occurs, the control performs
synchronization between XML and MSHTML. Calling tells the control
it must not synchronized any changes made in XmlDocument until is called.
The and the methods of the automatically start a transaction, if
it has not been started yet.
Sets input focus to the control.
True if the input focus request was successful; otherwise, false.
Scrolls current document selection into view.
Returns a Boolean value indicating whether or not the specified dialog can be shown.
The dialog type.
A Boolean value indicating whether or not the specified dialog can be shown.
This example shows how to add an "Add Image" button to the form.
private void Form1_Load(object sender, EventArgs e)
{
_btnAddImage = new Button();
_btnAddImage.Text = "Add Image";
_btnAddImage.Click += AddPictureDialog;
this.Controls.Add(_btnAddImage);
_btnAddImage.Location = new Point(10, 10);
c1Editor1.DocumentChanged += UpdateUI;
c1Editor1.SelectionChanged += UpdateUI;
c1Editor1.ModeChanged += UpdateUI;
}
private void AddPictureDialog(object sender, EventArgs e)
{
c1Editor1.ShowDialog(DialogType.Image);
}
private void UpdateUI(object sender, EventArgs e)
{
_btnAddImage.Enabled = c1Editor1.CanShowDialog(DialogType.Image);
}
Shows the specified dialog box.
The type of dialog box to show.
This example shows how to add an "Add Image" button to the form.
private void Form1_Load(object sender, EventArgs e)
{
_btnAddImage = new Button();
_btnAddImage.Text = "Add Image";
_btnAddImage.Click += AddPictureDialog;
this.Controls.Add(_btnAddImage);
_btnAddImage.Location = new Point(10, 10);
c1Editor1.DocumentChanged += UpdateUI;
c1Editor1.SelectionChanged += UpdateUI;
c1Editor1.ModeChanged += UpdateUI;
}
private void AddPictureDialog(object sender, EventArgs e)
{
c1Editor1.ShowDialog(DialogType.Image);
}
private void UpdateUI(object sender, EventArgs e)
{
_btnAddImage.Enabled = c1Editor1.CanShowDialog(DialogType.Image);
}
Selects the entire contents of the editor.
Creates a range that begins with the specified starting character and continues through the specified length of characters, and moves selection to the range.
The start position.
The length of the range.
Creates a text range.
A new text range.
Creates a range that begins with the specified starting character and continues through the specified length of characters.
The start position
The length of the range
The text range.
This code demonstrates the method.
Document123456