Compartilhar via


InvalidRangeException Class

Definition

The exception that is thrown when you try to add a control to a Microsoft Office Excel workbook at run time, but the specified range contains multiple areas instead of a contiguous block of cells.

public ref class InvalidRangeException sealed : Microsoft::VisualStudio::Tools::Applications::Runtime::RuntimeException
[System.Diagnostics.DebuggerNonUserCode]
[System.Serializable]
public sealed class InvalidRangeException : Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
[<System.Diagnostics.DebuggerNonUserCode>]
[<System.Serializable>]
type InvalidRangeException = class
    inherit RuntimeException
Public NotInheritable Class InvalidRangeException
Inherits RuntimeException
Inheritance
InvalidRangeException
Attributes

Remarks

You can add controls to Excel workbooks at run time by using the Office development tools in Visual Studio. For more information, see Adding Controls to Office Documents at Run Time.

Constructors

InvalidRangeException()
InvalidRangeException(Exception)
InvalidRangeException(String, Exception)
InvalidRangeException(String)

Applies to