Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Inheritance Hierarchy
System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.InPlaceTextEditor
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public NotInheritable Class InPlaceTextEditor _
    Implements IDisposable
public sealed class InPlaceTextEditor : IDisposable
public ref class InPlaceTextEditor sealed : IDisposable
[<Sealed>]
type InPlaceTextEditor =  
    class 
        interface IDisposable 
    end
public final class InPlaceTextEditor implements IDisposable
The InPlaceTextEditor type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| .gif) | CommitOnEscape | Gets or sets a value indicating whether the Escape key commits the edit. If true, the Enter key will be used as a CRLF for in-place editing. | 
| .gif) | EditorControl | Gets the Windows control used to edit the text. | 
| .gif) | EditorFont | Gets the custom font for this editor. This property may return null in which case the edit control's default font will be used. | 
| .gif) | Field | Gets the field that is currently being edited or the field whose subfield is currently being edited. | 
| .gif) | HorizontalAlignment | Gets or sets a value indicating the horizontal alignment of the text in the editor. | 
| .gif) .gif) | Instance | Gets the singleton InPlaceTextEditor instance. | 
| .gif) | InUse | Gets a value indicating whether the edit control is currently active and in use. | 
| .gif) | MultipleLineEditingEnabled | Gets or sets a value indicating whether the text editor supports multiline editing. | 
| .gif) | Shape | Gets the shape whose field or subfield is currently being edited. | 
| .gif) | SubField | Gets the subfield that is currently being edited. This can be null. | 
| .gif) | WordWrap | Gets or sets a value indicating whether the editor should word wrap. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | CancelPendingEdit | Cancels a pending edit if any. | 
| .gif) | CanEditValue | Returns a value indicating whether the value of this field can be edited. | 
| .gif) | CommitPendingEdit | Commits a pending edit if any. | 
| .gif) | Dispose | Releases all resources used by the current instance of the InPlaceTextEditor class. | 
| .gif) | EditValue(ShapeElement, ShapeField, ShapeSubField, DiagramClientView) | Invokes the in-place editor. | 
| .gif) | EditValue(ShapeElement, ShapeField, ShapeSubField, DiagramClientView, PointD) | Invokes the in-place editor, setting the caret using the specified mouse position. | 
| .gif) | EditValue(ShapeElement, ShapeField, ShapeSubField, DiagramClientView, String) | Invokes the in-place editor, replacing the text with the specified text. | 
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | SetFont | Sets the font for this editor. | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Events
| Name | Description | |
|---|---|---|
| .gif) | BeginEdit | Event fired when in-place editing begins. | 
| .gif) | EndEdit | Event fired when in-place editing is finished. | 
Top
Remarks
A singleton in-place editor
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.