Namespace: Microsoft.VisualStudio.OLE.Interop
Assembly: Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)
Syntax
'宣言
Sub GetNaturalExtent ( _
dwAspect As UInteger, _
lindex As Integer, _
ptd As DVTARGETDEVICE(), _
hicTargetDev As IntPtr, _
pExtentInfo As DVEXTENTINFO(), _
<OutAttribute> pSizel As SIZEL() _
)
'使用
Dim instance As IViewObjectEx
Dim dwAspect As UInteger
Dim lindex As Integer
Dim ptd As DVTARGETDEVICE()
Dim hicTargetDev As IntPtr
Dim pExtentInfo As DVEXTENTINFO()
Dim pSizel As SIZEL()
instance.GetNaturalExtent(dwAspect, lindex, _
ptd, hicTargetDev, pExtentInfo, pSizel)
void GetNaturalExtent(
uint dwAspect,
int lindex,
DVTARGETDEVICE[] ptd,
IntPtr hicTargetDev,
DVEXTENTINFO[] pExtentInfo,
SIZEL[] pSizel
)
void GetNaturalExtent(
[InAttribute] unsigned int dwAspect,
[InAttribute] int lindex,
[InAttribute] array<DVTARGETDEVICE>^ ptd,
[InAttribute] IntPtr hicTargetDev,
[InAttribute] array<DVEXTENTINFO>^ pExtentInfo,
[OutAttribute] array<SIZEL>^ pSizel
)
function GetNaturalExtent(
dwAspect : uint,
lindex : int,
ptd : DVTARGETDEVICE[],
hicTargetDev : IntPtr,
pExtentInfo : DVEXTENTINFO[],
pSizel : SIZEL[]
)
Parameters
- dwAspect
Type: System.UInt32
- lindex
Type: System.Int32
- ptd
Type: []
- hicTargetDev
Type: System.IntPtr
- pExtentInfo
Type: []
- pSizel
Type: []
Remarks
For information on the COM interface, see IViewObjectEx::GetNaturalExtent
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.