Class ImageInline
An inline-level document element which contains image.
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Documents.Model
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class ImageInline : DrawingInline, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IImageDocumentElement, IDrawingImageElement, ISupportInitialize
Constructors
ImageInline()
ImageInline(Stream)
Initializes a new instance of the Image
Declaration
public ImageInline(Stream inputStream)
Parameters
System. The stream from which to obtain the image source. |
ImageInline(Stream, Size, String)
Initializes a new instance of the Image
Declaration
public ImageInline(Stream inputStream, Size size, string extension)
Parameters
System. The stream from which to obtain the image source. |
Size
size
The size of the element. |
System. The extension of the image. |
ImageInline(Uri)
Initializes a new instance of the Image
Declaration
public ImageInline(Uri uriSource)
Parameters
System. The URI from which to obtain the image source. |
ImageInline(WriteableBitmap)
Initializes a new instance of the Image
Declaration
public ImageInline(WriteableBitmap writableBitmap)
Parameters
Writeable The writable bitmap which will be used to create the image. |
ImageInline(ImageInline)
Initializes a new instance of the Image
Declaration
public ImageInline(ImageInline originalImage)
Parameters
Image The Image |
Properties
Alt
Gets or sets the alternative text for the image.
Declaration
[XamlSerializable]
public string Alt { get; set; }
Property Value
System. The alt. |
Extension
Gets or sets the file extension.
Declaration
[XamlSerializable]
public string Extension { get; set; }
Property Value
System. The extension. |
Height
Gets or sets the height.
Declaration
[XamlSerializable]
public override double Height { get; set; }
Property Value
System. The height. |
Overrides
ImageSource
Gets the image source last used to visualize the image.
Declaration
public BitmapImage ImageSource { get; }
Property Value
RawData
Gets or sets the image bytes in Base64 format. This property is used for serialization.
Declaration
[XamlSerializable]
public string RawData { get; set; }
Property Value
System. The raw data. |
RotateAngle
Gets or sets the angle at which the image should be rotated.
Declaration
[XamlSerializable(0)]
public override double RotateAngle { get; set; }
Property Value
System. The rotate angle. |
Overrides
Size
Gets or sets the size.
Declaration
public override Size Size { get; set; }
Property Value
Size
The size. |
Overrides
Title
Gets or sets the title.
Declaration
[XamlSerializable]
public string Title { get; set; }
Property Value
System. The title. |
UriSource
Gets or sets the URI which is used to obtain the image source.
Declaration
[XamlSerializable]
public Uri UriSource { get; set; }
Property Value
System. The URI source. |
Width
Gets or sets the width.
Declaration
[XamlSerializable]
public override double Width { get; set; }
Property Value
System. The width. |
Overrides
Methods
CopyContentFromOverride(DocumentElement)
Copies the source from another Image
Declaration
protected override void CopyContentFromOverride(DocumentElement fromElement)
Parameters
Document The Image |
Overrides
CopyPropertiesFromOverride(DocumentElement)
Copies the properties from another document element to the current instance.
Declaration
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
Document The Image |
Overrides
CreateLayoutBox(DocumentStructureCollection)
Creates a Layout
Declaration
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters
Document The document collection. |
Returns
Layout An Image |
Overrides
CreateNewElementInstance()
Creates a new instance of this element.
Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
Document The new instance. |
Overrides
GetBytes()
Gets the byte array used to create the image.
Declaration
public byte[] GetBytes()
Returns
System.
|
Init(Stream, String)
Initializes the element.
Declaration
public void Init(Stream inputStream, string extension)
Parameters
System. The stream from which to obtain the image source. |
System. The extension of the image. |
Init(Stream, Size, String)
Initializes the element.
Declaration
public void Init(Stream inputStream, Size size, string extension)
Parameters
System. The stream from which to obtain the image source. |
Size
size
The size of the element. |
System. The extension of the image. |