共用方式為


TextSpanHelper.Clear(TextSpan) Method

Definition

Sets the members of the specified span to an empty state.

public:
 static void Clear(Microsoft::VisualStudio::TextManager::Interop::TextSpan % span);
public:
 static void Clear(Microsoft::VisualStudio::TextManager::Interop::TextSpan &  span);
 static void Clear(Microsoft::VisualStudio::TextManager::Interop::TextSpan & span);
public static void Clear (ref Microsoft.VisualStudio.TextManager.Interop.TextSpan span);
static member Clear : TextSpan -> unit
Public Shared Sub Clear (ByRef span As TextSpan)

Parameters

span
TextSpan

[in] The TextSpan object to clear.

Remarks

This method sets the start and end members to 0, and thereby creates an empty span.

Applies to