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: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public int RedosAvailable { get; }

Property Value

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

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;
    else
        this.Button1.Enabled = true;

    base.Render (writer);
}

// Button event handler
private void Button1_Click(object sender, System.EventArgs e)
{
    this.WebImageViewer1.Redo();
}
See Also