Class
ImageInline

An inline-level document element which contains image.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class ImageInline : DrawingInline, ISupportInitialize

Inheritance: objectDocumentElementInlineDrawingInlineImageInline

Implements: ISupportInitialize

Inherited Members Inline.CopyFromPositionToEndOfInline(DocumentPosition, DocumentPosition)Inline.CopyFromStartOfInlineToEndPosition(DocumentPosition)Inline.CopyContentFrom(DocumentElement)Inline.FieldStartInline.IsCopyableDocumentElement.GetStyleProperty(IStylePropertyDefinition)DocumentElement.GetStyleProperty(string)DocumentElement.EnumerateChildrenOfType<T>()DocumentElement.GetParentOfType<T>()DocumentElement.CreateLayoutBox()DocumentElement.CopyPropertiesFrom(DocumentElement)DocumentElement.CopyPropertiesFromStyle(StyleDefinition)DocumentElement.ExtractStyleFromProperties()DocumentElement.ExtractStyleFromLocalProperties()DocumentElement.InvalidateAssociatedBoxesArrange()DocumentElement.InvalidateAssociatedBoxesMeasure()DocumentElement.InvalidateAssociatedBoxesLayout()DocumentElement.GetAssociatedLayoutBoxes()DocumentElement.GetRootDocument()DocumentElement.CreateDeepCopy()DocumentElement.CreateShallowCopy()DocumentElement.GetPropertyValueSource(IStylePropertyDefinition)DocumentElement.ClearValue(IStylePropertyDefinition)DocumentElement.OnRemoved()DocumentElement.OnStyleChanging()DocumentElement.OnStyleChanged()DocumentElement.OnStylePropertyChanged(StylePropertyChangeEventArgs)DocumentElement.OnParentChanging()DocumentElement.OnParentChanged()DocumentElement.ChildIndexDocumentElement.HasStyleDocumentElement.StyleDocumentElement.StyleNameDocumentElement.TagDocumentElement.FirstLayoutBoxDocumentElement.IsFirstLayoutBoxInitializedDocumentElement.DocumentElementsDocumentElement.ParentDocumentElement.ChildrenDocumentElement.PreviousSiblingDocumentElement.NextSiblingDocumentElement.CursorDocumentElement.StyleChangingDocumentElement.StyleChangedDocumentElement.StylePropertyChangedDocumentElement.ParentChangingDocumentElement.ParentChangedDocumentElement.PropertyValueChanged

Constructors

ImageInline()

Initializes a new instance of the ImageInline class.

Declaration

cs-api-definition
public ImageInline()

ImageInline(ImageInline)

Initializes a new instance of the ImageInline class.

Declaration

cs-api-definition
public ImageInline(ImageInline originalImage)

Parameters

originalImage

ImageInline

The ImageInline which will be cloned.

ImageInline(Stream)

Initializes a new instance of the ImageInline class.

Declaration

cs-api-definition
public ImageInline(Stream inputStream)

Parameters

inputStream

Stream

The stream from which to obtain the image source.

ImageInline(Stream, Size, string)

Initializes a new instance of the ImageInline class.

Declaration

cs-api-definition
public ImageInline(Stream inputStream, Size size, string extension)

Parameters

inputStream

Stream

The stream from which to obtain the image source.

size

Size

The size of the element.

extension

string

The extension of the image.

ImageInline(Uri)

Initializes a new instance of the ImageInline class.

Declaration

cs-api-definition
public ImageInline(Uri uriSource)

Parameters

uriSource

Uri

The URI from which to obtain the image source.

ImageInline(WriteableBitmap)

Initializes a new instance of the ImageInline class.

Declaration

cs-api-definition
public ImageInline(WriteableBitmap writableBitmap)

Parameters

writableBitmap

WriteableBitmap

The writable bitmap which will be used to create the image.

Properties

Alt

Gets or sets the alternative text for the image.

Declaration

cs-api-definition
[XamlSerializable]
public string Alt { get; set; }

Property Value

string

The alt.

Extension

Gets or sets the file extension.

Declaration

cs-api-definition
[XamlSerializable]
public string Extension { get; set; }

Property Value

string

The extension.

Height

Gets or sets the height.

Declaration

cs-api-definition
[XamlSerializable]
public override double Height { get; set; }

Property Value

double

The height.

Overrides DrawingInline.Height

RawData

Gets or sets the image bytes in Base64 format. This property is used for serialization.

Declaration

cs-api-definition
[XamlSerializable]
public string RawData { get; set; }

Property Value

string

The raw data.

RotateAngle

Gets or sets the angle at which the image should be rotated.

Declaration

cs-api-definition
[XamlSerializable(0)]
public override double RotateAngle { get; set; }

Property Value

double

The rotate angle.

Overrides DrawingInline.RotateAngle

Size

Gets or sets the size.

Declaration

cs-api-definition
public override Size Size { get; set; }

Property Value

Size

The size.

Overrides DrawingInline.Size

Title

Gets or sets the title.

Declaration

cs-api-definition
[XamlSerializable]
public string Title { get; set; }

Property Value

string

The title.

UriSource

Gets or sets the URI which is used to obtain the image source.

Declaration

cs-api-definition
[XamlSerializable]
public Uri UriSource { get; set; }

Property Value

Uri

The URI source.

Width

Gets or sets the width.

Declaration

cs-api-definition
[XamlSerializable]
public override double Width { get; set; }

Property Value

double

The width.

Overrides DrawingInline.Width

Methods

CopyContentFromOverride(DocumentElement)

Copies the source from another ImageInline.

Declaration

cs-api-definition
protected override void CopyContentFromOverride(DocumentElement fromElement)

Parameters

fromElement

DocumentElement

The ImageInline to copy the source from.

Overrides Inline.CopyContentFromOverride(DocumentElement)

CopyPropertiesFromOverride(DocumentElement)

Copies the properties from another document element to the current instance.

Declaration

cs-api-definition
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)

Parameters

fromElement

DocumentElement

The ImageInline to copy the properties from.

Overrides Inline.CopyPropertiesFromOverride(DocumentElement)

CreateLayoutBox(DocumentStructureCollection)

Creates a LayoutBox for the element.

Declaration

cs-api-definition
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)

Parameters

documentCollection

DocumentStructureCollection

The document collection.

Returns

LayoutBox

An ImageLayoutBox object representing the layout box for the current instance.

Overrides DocumentElement.CreateLayoutBox(DocumentStructureCollection)

CreateNewElementInstance()

Creates a new instance of this element.

Declaration

cs-api-definition
protected override DocumentElement CreateNewElementInstance()

Returns

DocumentElement

The new instance.

Overrides DocumentElement.CreateNewElementInstance()

GetBytes()

Gets the byte array used to create the image.

Declaration

cs-api-definition
public byte[] GetBytes()

Returns

byte[]

Init(Stream, Size, string)

Initializes the element.

Declaration

cs-api-definition
public void Init(Stream inputStream, Size size, string extension)

Parameters

inputStream

Stream

The stream from which to obtain the image source.

size

Size

The size of the element.

extension

string

The extension of the image.

Init(Stream, string)

Initializes the element.

Declaration

cs-api-definition
public void Init(Stream inputStream, string extension)

Parameters

inputStream

Stream

The stream from which to obtain the image source.

extension

string

The extension of the image.