Class CadImage

CadImage class

Cad image class

public class CadImage : Image, IHasEntities<CadEntityBase>, IHasLayouts<CadLayout, CadEntityBase>

Constructors

NameDescription
CadImage()Initializes a new instance of the CadImage class.

Properties

NameDescription
ActivePage { get; }Gets the active page.
virtual AnnotationService { get; }Gets the annotation service.
AppIdTables { get; set; }Gets or sets the application identifier tables.
ApplicationVersion { get; set; }Gets or sets the application version.
BlockEntities { get; set; }Gets or sets the block entities.
BlocksTables { get; set; }Gets or sets the blocks tables.
Bounds { get; }Gets the image bounds.
CadAcds { get; set; }Gets or sets the CadAcds list
ClassEntities { get; set; }Gets or sets the class entities.
Container { get; }Gets the Image container.
override CustomProperties { get; }Gets or sets the custom properties.
DataStreamContainer { get; }Gets the object’s data stream.
DefaultFont { get; set; }Gets or sets the default font.
DefaultLineWeight { get; set; }Gets or sets the default line weight.
virtual Depth { get; }Gets the image depth.
DimensionStyles { get; set; }Gets or sets the dimension styles.
Disposed { get; }Gets a value indicating whether this instance is disposed.
Entities { get; set; }Gets or sets the entities.
FileEncoding { get; set; }Gets file’s encoding
Header { get; set; }Gets or sets the header.
override Height { get; }Gets the image height.
IsCached { get; }Gets a value indicating whether object’s data is cached currently and no data reading is required.
Layers { get; set; }Gets or sets the layers.
Layouts { get; }Gets the layouts with information specific to AutoCAD formats.
LineTypes { get; set; }Gets or sets the dimension styles.
MaintenanceVersion { get; set; }Gets or sets the maintenance version.
MaxPoint { get; }Gets the max point.
MinPoint { get; }Gets the min point.
Objects { get; set; }Gets or sets the objects.
Palette { get; set; }Gets or sets the color palette.
SectionsData { get; }
Size { get; }Gets the image size.
SpecifiedEncoding { get; set; }Gets or sets the specified encoding.
SpecifiedMifEncoding { get; set; }Gets or sets the specified MIF character encoding
Styles { get; set; }Gets or sets the styles.
ThumbnailImage { get; set; }Gets or sets the thumbnail image.
UCSs { get; set; }Gets or sets the uc ss.
virtual UnitlessDefaultUnitType { get; }Assumed unit type when UnitType is set to Unitless
virtual UnitType { get; }Gets current unit type.
ViewPorts { get; set; }Gets or sets the view ports.
Views { get; set; }Gets or sets the views.
virtual WatermarkGuardService { get; }
override Width { get; }Gets the image width.

Methods

NameDescription
CacheData()Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer.
CanSave(ImageOptionsBase)Determines whether image can be saved to the specified file format represented by the passed save options.
Dispose()Disposes the current instance.
GetBounds()Fills Bounds property (contain minimum and maximum point of entity) for all entities.
GetBounds(CadEntityBase)Fills Bounds property (contains minimum and maximum point) for entity.
override GetStrings()Gets all string values from image.
Save()Saves the image data to the underlying stream.
Save(Stream)Saves the object’s data to the specified stream.
virtual Save(string)Saves the object’s data to the specified file location.
Save(Stream, ImageOptionsBase)Saves the image’s data to the specified stream in the specified file format according to save options.
virtual Save(string, bool)Saves the object’s data to the specified file location.
virtual Save(string, ImageOptionsBase)Saves the object’s data to the specified file location in the specified file format according to save options.
SaveAsync(Stream, ImageOptionsBase)Saves the image’s data to the specified stream in the specified file format according to save options.
virtual SaveAsync(string, ImageOptionsBase)Saves the object’s data to the specified file location in the specified file format according to save options.
override ThrowIfCantExportToCad(ImageOptionsBase, Exception)
virtual TryRemoveEntity(CadEntityBase)Removes entity from blocks for DWG format.
UpdateSize(bool)Updates size of an image after changes, that may affect initial size, e.g. removing of entities. MinPoint, MaxPoint, Width and Height properties of image are updated.

See Also