共用方式為


IVsColorizer.GetStartState(Int32) Method

Definition

Determines the state in which colorization of the first line of the buffer should begin.

public:
 int GetStartState([Runtime::InteropServices::Out] int % piStartState);
int GetStartState([Runtime::InteropServices::Out] int & piStartState);
public int GetStartState (out int piStartState);
abstract member GetStartState : int -> int
Public Function GetStartState (ByRef piStartState As Integer) As Integer

Parameters

piStartState
Int32

[out] Pointer to a long integer that represents the start state of the colorizer.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsColorizer::GetStartState(  
   [out] long *piStartState  
);  

This method is called only if the colorizer needs state maintenance, that is, when the GetStateMaintenanceFlag method returns true.

GetStartState indicates the state in which colorization of the first line of the buffer should start.

Applies to