[]
        
(Showing Draft Content)

GrapeCity.Documents.Svg.SvgReference

Class SvgReference

Namespace
GrapeCity.Documents.Svg
Assembly
GcDocs.Imaging.dll

Represents a reference to another element or resource.

public class SvgReference : IEquatable<SvgReference>, IDisposable
Inheritance
object
SvgReference
Implements
System.IEquatable<T><SvgReference>
System.IDisposable
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()

Constructors

SvgReference(GcBitmap, bool)

Initializes a new instance of the SvgReference class with an embedded image.

public SvgReference(GcBitmap bitmap, bool ownData)

Parameters

bitmap GcBitmap
ownData bool

SvgReference(GcSvgDocument, bool)

Initializes a new instance of the SvgReference class with an embedded SVG document.

public SvgReference(GcSvgDocument svgDocument, bool ownData)

Parameters

svgDocument GcSvgDocument
ownData bool

SvgReference(string)

Initializes a new instance of the SvgReference class with the specified id.

public SvgReference(string id)

Parameters

id string

SvgReference(Uri)

Initializes a new instance of the SvgReference class with the specified Uri object.

public SvgReference(Uri uri)

Parameters

uri System.Uri

Fields

None

Gets a reference to nowhere.

public static readonly SvgReference None

Field Value

SvgReference

Properties

Bitmap

Gets the embedded GcBitmap.

public GcBitmap Bitmap { get; }

Property Value

GcBitmap

ID

Gets the ID of the referenced element.

public string ID { get; }

Property Value

string

InJpegFormat

Gets or sets a value indicating whether the bitmap should be encoded in JPEG format (true) or in PNG format (false).

public bool InJpegFormat { get; set; }

Property Value

bool

InSvgzFormat

Gets or sets a value indicating whether the embedded SVG document should be encoded using the compressed SVGZ format.

public bool InSvgzFormat { get; set; }

Property Value

bool

IsDisposed

Gets a value indicating whether the SvgReference has been disposed of.

public bool IsDisposed { get; }

Property Value

bool

OwnData

Gets a value indicating whether the embedded GcBitmap or GcSvgDocument should be disposed when disposing the SvgReference.

public bool OwnData { get; }

Property Value

bool

ReferenceType

Gets the type of the data in SvgReference.

public SvgReferenceType ReferenceType { get; }

Property Value

SvgReferenceType

Svg

Gets the embedded GcSvgDocument.

public GcSvgDocument Svg { get; }

Property Value

GcSvgDocument

Uri

Gets the reference Uri.

public Uri Uri { get; }

Property Value

System.Uri

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Equals(SvgReference)

Determines whether the specified SvgReference is equal to this instance.

public bool Equals(SvgReference other)

Parameters

other SvgReference

Returns

bool

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object value)

Parameters

value object

Returns

bool

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string