Table of Contents

Class CadClipboardData

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

What a clipboard holds for the presenter: objects copied, as a small DXF of their own (the objects in its model space with the layers, linetypes, styles and blocks they need, its $INSBASE the base point they are pasted by), with where they came from; and plain text, the words of the TEXTs and MTEXTs copied for other apps, or text another app copied, which PASTECLIP pastes as an MTEXT; and a picture another app copied, which PASTECLIP pastes as an OLE object where there are no objects and no text.

public sealed class CadClipboardData
Inheritance
CadClipboardData
Inherited Members

Constructors

CadClipboardData(string, string, string, string, string, int, byte[])

Makes what a clipboard holds.

Fields

Format

The name of the private clipboard format the objects go on the Windows clipboard under.

Properties

Count

Gets how many objects were copied.

Drawing

Gets the DXF of the objects copied; null for text alone.

HasObjects

Gets whether the clipboard holds objects of a drawing.

Picture

Gets the bytes of a bitmap file or a PNG another app copied; null for none. It goes on no clipboard from here and is not part of the private format.

Source

Gets what tells the drawing copied from from any other; null for text of another app.

SourceName

Gets the name of the drawing copied from; null for none.

SpaceName

Gets the space copied from; null for none.

Text

Gets the plain text; null for none.

Methods

FromFormat(string, string)

Reads what ToFormat() wrote, with the plain text beside it; null where the format is not one this writes.

ToFormat()

Writes the objects as the private clipboard format holds them: a few lines saying where they came from, then the DXF; null where there are no objects.