Declaration
Getting property value:
Automation:
bool  value = obj.CanRedo;
Native (C++):
HRESULT  get_ CanRedo ( [out, retval]   VARIANT_BOOL *  val) ;
Parameters
valPointer to a variable that receives a property value.
Return Value
Automation:True if you can call the Redo method and False otherwise. Native: S_OK or standard OLE error code.
Remarks
Determine if you can call the IFileDocument.Redo method.
Examples

Sample implementation of the Redo method

C++Copy Code
void Redo(IFileDocument *pFileDocument)
{
  VARIANT_BOOL bCanRedo;
  
  pFileDocument->get_CanRedo(&bCanRedo);
  if (bCanRedo == VARIANT_TRUE)
    pFileDocument->Redo();
}
    

Sample implementation of the Redo method

C#Copy Code
public void Redo(IFileDocument fdoc)
{
  if (fdoc.CanRedo) 
    fdoc.Redo();
}
    

See Also