[]
        
(Showing Draft Content)

C1.Win.C1Editor.UICustomization.XHTMLItemBase

XHTMLItemBase Class

Base class for classes used to provide data to custom edit dialogs.

Namespace: C1.Win.C1Editor.UICustomization
Assembly: C1.Win.C1Editor.4.8.dll
Syntax
public abstract class XHTMLItemBase
Remarks

The derived classes are XHTMLBookmarkItem, XHTMLHyperlinkItem, XHTMLCellItem, XHTMLColumnItem, XHTMLImageItem, XHTMLFlashMovieItem, XHTMLTableItem

Implementing a custom dialog, you will receive an instance of a successor of the XHTMLItemBase class in the BindData method. Use it to bind the data to the dialog's UI.

Examples

The code below binds data in the XHTMLImageItem item to GUI controls of a custom dialog form.

 void IImageItemDialog.BindData(XHTMLImageItem item)
{
    _cbxWidthType.SelectedIndex = (int)Item.WidthType;
    _cbxHeightType.SelectedIndex = (int)Item.HeightType;
    _tbWidthValue.Value = Math.Max(Item.WidthValue, 1);
    _tbHeightValue.Value = Math.Max(Item.HeightValue, 1);
    _tbSource.DataBindings.Add("Text", Item, "Source");
    _chkWidth.DataBindings.Add("Checked", Item, "UseWidth");
    _chkHeight.DataBindings.Add("Checked", Item, "UseHeight");
    _tbAlternate.DataBindings.Add("Text", Item, "Alternate");
    SetButtonState(this, EventArgs.Empty);
}

Fields

Name Description
_editor

For internal use only.

_sourceNode

For internal use only.

Properties

Name Description
ApplyButtonVisible

If True, the Apply button appears in the dialog.

DocumentName

File name of the document.

IsEditMode

If True, the dialog is in editing mode; otherwise, the dialog is in creating new object mode.

Node

Returns an XmlNode representing the content that is being edited in the dialog.

Style

Gets or sets item style.

Methods

Name Description
ApplyChanges()

Applies changes made in the dialog to the document.

BuildXml()

For internal use only.

CheckMinValue(ref int, int)

For internal use only.

CreateElement(string)

For internal use.

GetAnchorNodeTemplate(List<XmlNode>)

For internal use.

GetNodeTemplate()

For internal use.

GetStringValue(HorizontalAlignment)

For internal use only.

GetStringValue(VerticalAlignment)

For internal use only.

ParseSourceNode()

For internal use only.

RaiseItemPropertiesChanged()

For internal use only.

ReadHorAlignAttribute(XmlAttributeCollection, ref HorizontalAlignment)

For internal use.

ReadSizeAttribute(XmlAttributeCollection, string, ref bool, ref SizeType, ref int)

For internal use.

ReadVertAlignAttribute(XmlAttributeCollection, ref VerticalAlignment)

For internal use.

RunItemDialog(object, bool)

For internal use only.

RunItemDialog(object, bool, bool)

For internal use only.

SelectSingleNode(string)

For internal use.

SetCustomSelection(C1TextRange)

For internal use.

SetDefaults()

For internal use.

StateEqual(XHTMLItemBase)

For internal use only.

StringToHAlign(string)

Converts a string to a value of HorizontalAlignment type.

StringToVAlign(string)

Converts a string to a value of VerticalAlignment type.

TryGetLocalPath(string)

For internal use.

WriteAttribute(string, string, bool)

For internal use.