VegaRise.NET
HomeAPI Reference
Back to DOM

GraphicClass

Definition

Namespace
DOM.Elements.Graphics
Assembly
DOM.dll

Represents a graphic element (image, shape, or other visual object) that can be placed within a document.

Remarks

The class serves as the base for all visual elements in the VDocs DOM, providing common properties for visual styling, positioning, and transformation. Graphic Graphics can be positioned using: Absolute positioning (X/Y coordinates with optional units) Alignment-based positioning (centered, left, right, etc.) Mixed positioning (horizontal alignment with vertical absolute, or vice versa) All positioning and sizing properties are stored in a object, which also handles rotation, margins, and text wrapping behavior. Transform

Properties

Shading

Gets or sets the shading (background fill pattern) applied to the graphic.

Transform

Gets or sets the transformation properties for the graphic.

The property consolidates all spatial and layout properties of the graphic, making it easy to manage the element's visual presentation. Transform

Methods

Ensures that the property is initialized. Transform

Ensures that both and are initialized. Transform, Position

Returns a string representation of the graphic's transformation properties.

Resets all transformation settings (position, dimensions, rotation, margins) to their default (unset) state.

Sets whether the graphic should appear behind the document text.

Sets the dimensions (width and height) of the graphic.

Sets the distance from text for text wrapping.

Sets uniform margins around the graphic.

Sets the absolute position of the graphic using the specified coordinates and units.

Sets the rotation angle of the graphic.

Sets the scale percentages for the graphic dimensions.

Sets the text wrapping style for the graphic.

Sets a custom wrap polygon for the graphic.

Sets the wrap text value (whether text wraps on both sides, left only, right only, etc.).