IVsTextImageUtilities.GetTextFormat Method
Gets text format
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaration
Function GetTextFormat ( _
vstffIn As UInteger, _
cbData As UInteger, _
pData As Byte(), _
<OutAttribute> ByRef pvstffOut As UInteger _
) As Integer
int GetTextFormat(
uint vstffIn,
uint cbData,
byte[] pData,
out uint pvstffOut
)
int GetTextFormat(
[InAttribute] unsigned int vstffIn,
[InAttribute] unsigned int cbData,
[InAttribute] array<unsigned char>^ pData,
[OutAttribute] unsigned int% pvstffOut
)
abstract GetTextFormat :
vstffIn:uint32 *
cbData:uint32 *
pData:byte[] *
pvstffOut:uint32 byref -> int
function GetTextFormat(
vstffIn : uint,
cbData : uint,
pData : byte[],
pvstffOut : uint
) : int
Parameters
vstffIn
Type: System.UInt32[in] Instructions for format and detection.
cbData
Type: System.UInt32[in] The size of data in bytes.
pData
Type: array<System.Byte[][in] The data.
pvstffOut
Type: System.UInt32%[out] The result text format.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textfind.idl:
HRESULT IVsTextImageUtilities::GetTextFormat(
[in] VSTFF vstffIn,
[in] DWORD cbData,
[in, size_is(cbData)] const BYTE * pData,
[out, retval] VSTFF * pvstffOut
);
.NET Framework Security
- 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.