The following table lists .NET WinForms functions and provides cross-references to their COM counterparts:
.Net Syntax | COM Interop Syntax | Related Properties |
static RasterImage Paste(IWin32Window owner) | LTDInterop.RasterImage IRasterClipboard.Paste(Int32 owner) | |
static void Copy(IWin32Window owner, RasterImage image, RasterClipboardCopyFlags flags) | void IRasterClipboard.Copy(Int32 owner, LTDInterop.RasterImage image, LTDWinFormsInterop.RasterClipboardCopyFlags flags) | |
event PaintEventHandler PaintBackground | void OnPaintBackground(LTDInterop.Rectangle clipRectangle, Int32 hdc); | |
event EventHandler<RasterImageListDrawItemEventArgs> DrawItem | void OnDrawItem(Int32 hdc, LTDWinFormsInterop.RasterImageListItem item); | |
event PaintEventHandler PreImagePaint | void OnPreImagePaint(LTDInterop.Rectangle clipRectangle, Int32 hdc); | |
event PaintEventHandler PostImagePaint() | void OnPostImagePaint(LTDInterop.Rectangle clipRectangle, Int32 hdc); | |
public byte[] BindingData | LTDInterop.IByteIndexProperty IRasterImageViewer.BindingData | |
virtual void RedirectPaint(Graphics graphics, Rectangle src, Rectangle dest, Rectangle destClip, Matrix transform) | void IRasterImageViewer.RedirectPaint(Int32 hdc, LTDInterop.Rectangle src, LTDInterop.Rectangle dest, LTDInterop.Rectangle destClip, Matrix transform) | |
LTDInterop.IPointsIndexProperty IRasterImageViewer.Points | Int32 IRasterImageViewer.PointsCount, OnInteractiveRegionFreehand | |
Int32 IRasterImageViewer.PointsCount | LTDInterop.IPointsIndexProperty IRasterImageViewer.Points, OnInteractiveRegionFreehand | |
Int32 GetDC() | ||
void IRasterImageViewer.InvalidateRect(LTDInterop.Rectangle rc) | ||
Control IRasterImageViewer.ToControl() | ||
public event DragEventHandlerDragDrop | void OnDragDrop(Int32 keyState, Int32 X, Int32 Y, LTDInterop.DragDropEffects allowedEffect, ref LTDInterop.DragDropEffects effect) |
LTDInterop.IStringIndexProperty IRasterImageViewer.DraggedFiles Int32 IRasterImageViewer.DraggedFilesCount |
public event DragEventHandlerDragEnter | void OnDragEnter(Int32 keyState, Int32 X, Int32 Y, LTDInterop.DragDropEffects allowedEffect, ref LTDInterop.DragDropEffects effect) |
LTDInterop.IStringIndexProperty IRasterImageViewer.DraggedFiles Int32 IRasterImageViewer.DraggedFilesCount |
The following topics provide comparisons between COM functions and their .NET counterparts: