RadBinaryImage
Represents a control which is capable of displaying images from a binary data
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[TelerikToolboxCategory("Miscellaneous")]
[ToolboxBitmap(typeof(RadBinaryImage), "Toolbox.Icons.BinaryImage.png")]
public class RadBinaryImage : WebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor
Inheritance: objectControlWebControlRadBinaryImage
Implements:
Inherited Members
Properties
Gets or sets the alternate text displayed in the Image control when the image
is unavailable. Browsers that support the ToolTips feature display this text as
a ToolTip.
[Bindable(true)]
public virtual string AlternateText { get; set; }
Specifies if the HTML image element's dimensions are inferred from image's binary data
public bool AutoAdjustImageControlSize { get; set; }
Specifies the crop position RadListView will use when cropping the image. This property has a meaning only when the ResizeMode property is set to BinaryImageResizeMode.Crop. Default value is BinaryImageCropPosition.Center.
public virtual BinaryImageCropPosition CropPosition { get; set; }
Gets or sets binary data to which control will be bound to
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
[Bindable(true)]
public byte[] DataValue { get; set; }
The URL for the file that contains a detailed description for the image. The default is an empty string ("").
public virtual string DescriptionUrl { get; set; }
When set to true enables support for WAI-ARIA
public bool EnableAriaSupport { get; set; }
Gets or sets a value indicating whether the control generates an alternate text attribute for an empty string value. The default value is false
public virtual bool GenerateEmptyAlternateText { get; set; }
Specifies the URL of the HTTPHandler from which the image will be served
Gets or sets the alignment of the RadBinaryImage control in relation to other elements on the Web page.
Gets the IRadImagePersister instance which is responsible for saving and loading image's data
protected virtual IRadImagePersister ImagePersister { get; }
This should be an instance of same type as RadBinaryImageHandler 's ImagePersister
public BinaryImageStorageLocation ImageStorageLocation { get; set; }
Gets or sets the location of an image to display in the RadBinaryImage control.
[Bindable(true)]
public virtual string ImageUrl { get; set; }
Applicable only when DataValue property is not set.
Gets or sets a value indicating whether the image data will be persisted if control is invisible
public virtual bool PersistDataIfNotVisible { get; set; }
Specifies the resize mode that RadBinaryImage will use to resize the image. Default value is BinaryImageResizeMode.None, indicating no resizing will be performed.
public virtual BinaryImageResizeMode ResizeMode { get; set; }
Get or set the name of the file which will appear inside of the SaveAs browser dialog
public virtual string SavedImageName { get; set; }
Gets the HtmlTextWriterTag value that corresponds to this Web server control. This property is used primarily by control developers.
protected override HtmlTextWriterTag TagKey { get; }
One of the HtmlTextWriterTag enumeration values.
Overrides:
Set whenever to render <img> tag when the image src is empty string. Default value is true.
public bool VisibleWithoutSource { get; set; }
Methods
Adds HTML attributes and styles that need to be rendered to the specified HtmlTextWriterTag. This method is used primarily by control developers.
protected override void AddAttributesToRender(HtmlTextWriter writer)
A HtmlTextWriter that represents the output stream to render HTML content on the client.
Overrides:
protected virtual BinaryImageFilterProcessor CreateFilterProcessor()
BinaryImageFilterProcessor
protected virtual BinaryImageTransformationFilter CreateImageTransformationFilter()
Binds a data source to the invoked server control and all its child controls.
public override void DataBind()
Overrides:
Saves any state that was modified after the TrackViewState() method was invoked.
protected override object SaveViewState()
An object that contains the current view state of the control; otherwise, if there is no view state associated with the control, null.
Overrides:
protected virtual void SetImageFileNameToPersister(IRadImagePersister persister)