InvalidRangeException Class

 

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.

Namespace:   Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.v4.0.Framework (in Microsoft.Office.Tools.v4.0.Framework.dll)

System.Object
  System.Exception
    Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
      Microsoft.Office.Tools.InvalidRangeException

[SerializableAttribute]
[DebuggerNonUserCodeAttribute]
[SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted = true)]
[SecurityPermissionAttribute(SecurityAction.InheritanceDemand, 
	Unrestricted = true)]
public sealed class InvalidRangeException : RuntimeException

NameDescription
System_CAPS_pubmethodInvalidRangeException()

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodInvalidRangeException(Exception)

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodInvalidRangeException(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodInvalidRangeException(String, Exception)

This API supports the product infrastructure and is not intended to be used directly from your code.

NameDescription
System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyHelpLink

(Inherited from Exception.)

System_CAPS_pubpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

(Inherited from Exception.)

System_CAPS_pubmethodGetType()

(Inherited from Exception.)

System_CAPS_pubmethodToString()

(Inherited from Exception.)

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.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: