Partager via


IViewObject2 Interface

Enables an object to display itself without passing a data object to the caller. Also returns the size of the drawing for a given view of an object. Extends and inherits from IViewObject. For more information, see IViewObject2.

Namespace:  Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

Syntax

'Declaration
<GuidAttribute("00000127-0000-0000-C000-000000000046")> _
<InterfaceTypeAttribute()> _
Public Interface IViewObject2 _
    Inherits IViewObject
[GuidAttribute("00000127-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute()]
public interface IViewObject2 : IViewObject
[GuidAttribute(L"00000127-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute()]
public interface class IViewObject2 : IViewObject
[<GuidAttribute("00000127-0000-0000-C000-000000000046")>]
[<InterfaceTypeAttribute()>]
type IViewObject2 =  
    interface 
        interface IViewObject 
    end
public interface IViewObject2 extends IViewObject

The IViewObject2 type exposes the following members.

Methods

  Name Description
Public method Draw
Public method Freeze
Public method GetAdvise
Public method GetColorSet
Public method GetExtent
Public method SetAdvise
Public method Unfreeze

Top

See Also

Reference

Microsoft.VisualStudio.OLE.Interop Namespace