New to Telerik UI for WinFormsStart a free 30-day trial

An inline-level document element which contains image.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class ImageInline : DrawingInline, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportInitialize

Inheritance: objectDisposableObjectRadObjectDocumentElementInlineDrawingInlineImageInline...

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChangedISupportInitialize

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.PropertyValueChangedRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

Initializes a new instance of the ImageInline class.

C#
public ImageInline()

Initializes a new instance of the ImageInline class.

C#
public ImageInline(ImageInline originalImage)
Parameters:originalImageImageInline

The ImageInline which will be cloned.

Initializes a new instance of the ImageInline class.

C#
public ImageInline(Stream inputStream, Size size, string extension)
Parameters:inputStreamStream

The stream from which to obtain the image source.

sizeSize

The size of the element.

extensionstring

The extension of the image.

Initializes a new instance of the ImageInline class.

C#
public ImageInline(Stream inputStream)
Parameters:inputStreamStream

The stream from which to obtain the image source.

Initializes a new instance of the ImageInline class.

C#
public ImageInline(Uri uriSource)
Parameters:uriSourceUri

The URI from which to obtain the image source.

Initializes a new instance of the ImageInline class.

C#
public ImageInline(WriteableBitmap writableBitmap)
Parameters:writableBitmapWriteableBitmap

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

Properties

Gets or sets the alternative text for the image.

C#
[XamlSerializable]
public string Alt { get; set; }
Property Value:

The alt.

Gets or sets the file extension.

C#
[XamlSerializable]
public string Extension { get; set; }
Property Value:

The extension.

Gets or sets the height.

C#
[XamlSerializable]
public override double Height { get; set; }
Property Value:

The height.

Overrides: DrawingInline.Height

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

C#
[XamlSerializable]
public string RawData { get; set; }
Property Value:

The raw data.

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

C#
[XamlSerializable(0)]
public override double RotateAngle { get; set; }
Property Value:

The rotate angle.

Overrides: DrawingInline.RotateAngle

Gets or sets the size.

C#
public override Size Size { get; set; }
Property Value:

The size.

Overrides: DrawingInline.Size

Gets or sets the title.

C#
[XamlSerializable]
public string Title { get; set; }
Property Value:

The title.

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

C#
[XamlSerializable]
public Uri UriSource { get; set; }
Property Value:

The URI source.

Gets or sets the width.

C#
[XamlSerializable]
public override double Width { get; set; }
Property Value:

The width.

Overrides: DrawingInline.Width

Methods

Copies the source from another ImageInline.

C#
protected override void CopyContentFromOverride(DocumentElement fromElement)
Parameters:fromElementDocumentElement

The ImageInline to copy the source from.

Overrides: Inline.CopyContentFromOverride(DocumentElement)

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

C#
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters:fromElementDocumentElement

The ImageInline to copy the properties from.

Overrides: Inline.CopyPropertiesFromOverride(DocumentElement)

Creates a LayoutBox for the element.

C#
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters:documentCollectionDocumentStructureCollection

The document collection.

Returns:

LayoutBox

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

Overrides: DocumentElement.CreateLayoutBox(DocumentStructureCollection)

Creates a new instance of this element.

C#
protected override DocumentElement CreateNewElementInstance()
Returns:

DocumentElement

The new instance.

Overrides: DocumentElement.CreateNewElementInstance()

Gets the byte array used to create the image.

C#
public byte[] GetBytes()
Returns:

byte[]

Initializes the element.

C#
public void Init(Stream inputStream, Size size, string extension)
Parameters:inputStreamStream

The stream from which to obtain the image source.

sizeSize

The size of the element.

extensionstring

The extension of the image.

Initializes the element.

C#
public void Init(Stream inputStream, string extension)
Parameters:inputStreamStream

The stream from which to obtain the image source.

extensionstring

The extension of the image.