public sealed class UndoRedoRichTextBox : UndoRedo<RichTextBox>
Public NotInheritable Class UndoRedoRichTextBox
Inherits UndoRedo(Of RichTextBox)
Dim instance As UndoRedoRichTextBox
public ref class UndoRedoRichTextBox sealed : public UndoRedo<RichTextBox^>
[<SealedAttribute>]
type UndoRedoRichTextBox =
class
inherit UndoRedo<RichTextBox>
end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Public NotInheritable Class Form1 : Inherits Form
Private undoRedo As UndoRedoRichTextBox
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) _
Handles MyBase.Load
Me.undoRedo = New UndoRedoRichTextBox(Me.RichTextBox1) With {
.Events = (UndoRedoRichTextBoxEvents.TextChanged Or UndoRedoRichTextBoxEvents.FontChanged),
.TextUpdateBehavior = UndoRedoTextUpdateBehavior.OnLeave
}
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) _
Handles Button1.Click
Me.undoRedo.Undo()
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) _
Handles Button2.Click
Me.undoRedo.Redo()
End Sub
Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) _
Handles MyBase.FormClosing
Me.undoRedo.Dispose()
End Sub
End Class
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
UndoRedoRichTextBox | Initializes a new instance of the UndoRedoTextBox class. |
CanRedo |
Gets a value indicating whether this instance can perform a redo operation.
(Inherited from UndoRedoT) |
CanUndo |
Gets a value indicating whether this instance can perform a undo operation.
(Inherited from UndoRedoT) |
Control |
Gets the control.
(Inherited from UndoRedoT) |
Events | Gets or sets the events being monitored for undo/redo operations. |
IsRedoing |
Gets a value indicating whether this instance is currently performing a redo operation.
(Inherited from UndoRedoT) |
IsUndoing |
Gets a value indicating whether this instance is currently performing a undo operation.
(Inherited from UndoRedoT) |
TextUpdateBehavior | Gets or sets the update behavior of when to save the text to undo or redo. |
Dispose |
Releases all the resources used by this instance.
(Inherited from UndoRedoT) |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
Redo |
Performs a redo operation.
(Inherited from UndoRedoT) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Undo |
Performs a undo operation.
(Inherited from UndoRedoT) |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |