Search Results for

    Show / Hide Table of Contents

    Interface IInteractiveCustomColumn

    Interface implemented by custom columns in the edit control that support user interaction.

    Inherited Members
    ICustomColumn.GetOptimalWidth(Graphics)
    ICustomColumn.CalculateCellContentHeight(Graphics, IRowInfo)
    ICustomColumn.BeginDraw()
    ICustomColumn.DrawCell(Graphics, IRowInfo, Rectangle, Pen, Pen, Pen, Pen)
    ICustomColumn.SetRowSizeAccessor(RowSizeAccessor)
    ICustomColumn.PrepareRegisterRows()
    ICustomColumn.RegisterRow(IRowInfo)
    ICustomColumn.EditControl
    ICustomColumn.Width
    ICustomColumn.IsComplex
    Namespace: Sdl.DesktopEditor.EditorApi
    Assembly: Sdl.DesktopEditor.EditorApi.dll
    Syntax
    public interface IInteractiveCustomColumn : ICustomColumn

    Properties

    EventFlags

    The editor queries this property to determine which user interaction events this column is interested in. Only these types of events will generate calls on the OnCell... methods in this interface.

    Declaration
    InteractiveEventFlags EventFlags { get; }
    Property Value
    Type Description
    InteractiveEventFlags

    Methods

    OnCellMouseDoubleClick(IRowInfo, Rectangle, MouseEventArgs)

    Called when the user double-clicks inside the column.

    Declaration
    void OnCellMouseDoubleClick(IRowInfo row, Rectangle cellBounds, MouseEventArgs e)
    Parameters
    Type Name Description
    IRowInfo row
    System.Drawing.Rectangle cellBounds
    System.Windows.Forms.MouseEventArgs e

    OnCellMouseDown(IRowInfo, Rectangle, MouseEventArgs)

    Called when the user presses the left mouse button inside the column.

    Declaration
    void OnCellMouseDown(IRowInfo row, Rectangle cellBounds, MouseEventArgs e)
    Parameters
    Type Name Description
    IRowInfo row
    System.Drawing.Rectangle cellBounds
    System.Windows.Forms.MouseEventArgs e

    OnCellMouseEntering(IRowInfo, Rectangle, IRowInfo, Rectangle)

    Called when the mouse cursor is moved into a cell in the column.

    Declaration
    void OnCellMouseEntering(IRowInfo row, Rectangle cellBounds, IRowInfo leavingRow, Rectangle leavingCellBounds)
    Parameters
    Type Name Description
    IRowInfo row

    the row of the cell the mouse is entering

    System.Drawing.Rectangle cellBounds

    window coordinates of the cell

    IRowInfo leavingRow

    the row of the cell the mouse was before entering this, or null if none.

    System.Drawing.Rectangle leavingCellBounds

    the window coordinates of the cell the mouse was in before entering this, if any

    OnCellMouseLeaving(IRowInfo, Rectangle, IRowInfo, Rectangle)

    Called when the mouse cursor is moved out of a cell in the column.

    Declaration
    void OnCellMouseLeaving(IRowInfo row, Rectangle cellBounds, IRowInfo enteringRow, Rectangle enteringCellBounds)
    Parameters
    Type Name Description
    IRowInfo row

    the row of the cell the mouse is leaving

    System.Drawing.Rectangle cellBounds

    window coordinates of the cell

    IRowInfo enteringRow

    the row of the cell the mouse will be entering, or null if none.

    System.Drawing.Rectangle enteringCellBounds

    the window coordinates of the cell the mouse will be entering, if any

    OnCellMouseMove(IRowInfo, Rectangle, MouseEventArgs)

    Called when the mouse cursor is moved inside the column.

    Declaration
    void OnCellMouseMove(IRowInfo row, Rectangle cellBounds, MouseEventArgs e)
    Parameters
    Type Name Description
    IRowInfo row
    System.Drawing.Rectangle cellBounds
    System.Windows.Forms.MouseEventArgs e

    OnCellMouseRightDown(IRowInfo, Rectangle, MouseEventArgs)

    Called when the right mouse button is pressed inside the column.

    Declaration
    void OnCellMouseRightDown(IRowInfo row, Rectangle cellBounds, MouseEventArgs e)
    Parameters
    Type Name Description
    IRowInfo row
    System.Drawing.Rectangle cellBounds
    System.Windows.Forms.MouseEventArgs e

    OnCellMouseRightUp(IRowInfo, Rectangle, MouseEventArgs)

    Called when the right mouse button is released inside the column.

    Declaration
    void OnCellMouseRightUp(IRowInfo row, Rectangle cellBounds, MouseEventArgs e)
    Parameters
    Type Name Description
    IRowInfo row
    System.Drawing.Rectangle cellBounds
    System.Windows.Forms.MouseEventArgs e

    OnCellMouseUp(IRowInfo, Rectangle, MouseEventArgs)

    Called when the user releases the left mouse button inside the column.

    Declaration
    void OnCellMouseUp(IRowInfo row, Rectangle cellBounds, MouseEventArgs e)
    Parameters
    Type Name Description
    IRowInfo row
    System.Drawing.Rectangle cellBounds
    System.Windows.Forms.MouseEventArgs e

    Events

    ContentChanged

    Fired by the custom column to indicate to the editor that content of one or more cells in the column has changed (and will need to be re-drawn).

    Declaration
    event EventHandler<CustomColumnContentChangedEventArgs> ContentChanged
    Event Type
    Type Description
    System.EventHandler<CustomColumnContentChangedEventArgs>
    Remarks

    This is only needed for content changes that do not originate directly from edit operations in the edit control. An example of when to use this event could be interactive highlighting of a cell when the user moves the mouse over it.

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(Object, Action<Window>)

    On this page

    • Properties
      • EventFlags
    • Methods
      • OnCellMouseDoubleClick(IRowInfo, Rectangle, MouseEventArgs)
      • OnCellMouseDown(IRowInfo, Rectangle, MouseEventArgs)
      • OnCellMouseEntering(IRowInfo, Rectangle, IRowInfo, Rectangle)
      • OnCellMouseLeaving(IRowInfo, Rectangle, IRowInfo, Rectangle)
      • OnCellMouseMove(IRowInfo, Rectangle, MouseEventArgs)
      • OnCellMouseRightDown(IRowInfo, Rectangle, MouseEventArgs)
      • OnCellMouseRightUp(IRowInfo, Rectangle, MouseEventArgs)
      • OnCellMouseUp(IRowInfo, Rectangle, MouseEventArgs)
    • Events
      • ContentChanged
    • Extension Methods
    Back to top Generated by DocFX