Compartir a través de


EditOptions Structure

Options applicable to text editing transactions.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaración
Public Structure EditOptions
public struct EditOptions
public value class EditOptions
[<Sealed>]
type EditOptions =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The EditOptions type exposes the following members.

Constructors

  Name Description
Public method EditOptions(StringDifferenceOptions) Initializes a new instance of EditOptions for computing a minimal difference, with the given StringDifferenceOptions.
Public method EditOptions(Boolean, StringDifferenceOptions) Initializes a new instance of EditOptions.

Top

Properties

  Name Description
Public property ComputeMinimalChange Determines whether to compute the minimal change.
Public property DifferenceOptions The differencing options for this edit, if ComputeMinimalChange is true.

Top

Methods

  Name Description
Public method Equals Determines whether two sets of options are the same. (Overrides ValueType.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Provides a hash function for the type. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Provides a string representation of these edit options. (Overrides ValueType.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether two EditOption objects are the same.
Public operatorStatic member Inequality Determines whether two EditOption objects are different.

Top

Fields

  Name Description
Public fieldStatic member DefaultMinimalChange Turn this edit into a minimal change, using line and word string differencing.
Public fieldStatic member None No special treatment.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Text Namespace