Condividi tramite


SimpleEditorView.OnEnterState Method

Notifies the view when the application enters or exits a given state.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Dichiarazione
Public Overridable Sub OnEnterState ( _
    uStateID As UInteger, _
    fEnter As Integer _
)
'Utilizzo
Dim instance As SimpleEditorView
Dim uStateID As UInteger
Dim fEnter As Integer

instance.OnEnterState(uStateID, fEnter)
public virtual void OnEnterState(
    uint uStateID,
    int fEnter
)
public:
virtual void OnEnterState(
    unsigned int uStateID, 
    int fEnter
)
abstract OnEnterState : 
        uStateID:uint32 * 
        fEnter:int -> unit 
override OnEnterState : 
        uStateID:uint32 * 
        fEnter:int -> unit 
public function OnEnterState(
    uStateID : uint, 
    fEnter : int
)

Parameters

  • fEnter
    Type: System.Int32
    true if the application is entering the specified state, false if it is exiting the state.

Implements

IOleComponent.OnEnterState(UInt32, Int32)

Remarks

If one (or more) calls are made with fEnter equal to true, the view should consider the state to be in effect until one (or more) calls are made with fEnter equal to false. It is possible for this method to be called with fEnter equal to false more times than it was called with fEnter equal to true. If there is a state counter that is incremented when this method is called with fEnter equal to true and decremented when called with fEnter equal to false, the counter should not be decremented if it is already at zero.

.NET Framework Security

See Also

Reference

SimpleEditorView Class

SimpleEditorView Members

Microsoft.VisualStudio.Package Namespace