[]
Represents a reference to another element or resource.
public class SvgReference : IEquatable<SvgReference>, IDisposable
Initializes a new instance of the SvgReference class with an embedded image.
public SvgReference(GcBitmap bitmap, bool ownData)
bitmap
GcBitmapownData
boolInitializes a new instance of the SvgReference class with an embedded SVG document.
public SvgReference(GcSvgDocument svgDocument, bool ownData)
svgDocument
GcSvgDocumentownData
boolInitializes a new instance of the SvgReference class with the specified id
.
public SvgReference(string id)
id
stringInitializes a new instance of the SvgReference class with the specified Uri object.
public SvgReference(Uri uri)
uri
System.UriGets a reference to nowhere.
public static readonly SvgReference None
Gets the embedded GcBitmap.
public GcBitmap Bitmap { get; }
Gets the ID of the referenced element.
public string ID { get; }
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; }
Gets or sets a value indicating whether the embedded SVG document should be encoded using the compressed SVGZ format.
public bool InSvgzFormat { get; set; }
Gets a value indicating whether the SvgReference has been disposed of.
public bool IsDisposed { get; }
Gets a value indicating whether the embedded GcBitmap or GcSvgDocument should be disposed when disposing the SvgReference.
public bool OwnData { get; }
Gets the type of the data in SvgReference.
public SvgReferenceType ReferenceType { get; }
Gets the embedded GcSvgDocument.
public GcSvgDocument Svg { get; }
Gets the reference Uri.
public Uri Uri { get; }
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Determines whether the specified SvgReference is equal to this instance.
public bool Equals(SvgReference other)
other
SvgReferenceDetermines whether the specified object is equal to this instance.
public override bool Equals(object value)
value
objectReturns a hash code for this instance.
public override int GetHashCode()
Returns a string that represents the current object.
public override string ToString()