Click or drag to resize

WebImageViewerRedosAvailable Property

Returns the number of Redos available from the cache.

Namespace:  Atalasoft.Imaging.WebControls
Assembly:  Atalasoft.dotImage.WebControls (in Atalasoft.dotImage.WebControls.dll) Version: (.NET 4.5.2, x86)
public int RedosAvailable { get; }

Property Value

Type: Int32
A value indicating how many redos are available in the cache.
This value is only accurate after PreRender event, and should only be used for cosmetic purposes in the Render event.

This example demonstrates how to use the RedosAvailable property in conjunction with a button control.

Redos using a button. C#
// We override Render because it is the only time this value is valid.
protected override void Render(HtmlTextWriter writer)
    if (this.WebImageViewer1.RedosAvailable < 1)
        this.Button1.Enabled = false;
        this.Button1.Enabled = true;

    base.Render (writer);

// Button event handler
private void Button1_Click(object sender, System.EventArgs e)
See Also