TextBuffer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The TextBuffer class manages arbitrary text file content, and generates and manipulates text.
public ref class TextBuffer : Microsoft::Dynamics::Ax::Xpp::XppObjectBase
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
public class TextBuffer : Microsoft.Dynamics.Ax.Xpp.XppObjectBase
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
type TextBuffer = class
inherit XppObjectBase
Public Class TextBuffer
Inherits XppObjectBase
- Inheritance
- Attributes
Remarks
This class features various string operations, a simple clipboard, and a file interface.
The following example demonstrates the TextBuff class.
static void example()
{
FileIoPermission _perm = new FileIoPermission("myfile.txt",'r');
TextBuffer txtb = new TextBuffer();
_perm.assert();
txtb.fromFile("myfile.txt"); // Read text from file
txtb.toClipboard(); // Copy it to the clipboard
}
Constructors
TextBuffer() | |
TextBuffer(IntPtr) |
Fields
__k_TextBufferId | |
kernelClass | (Inherited from XppObjectBase) |
Methods
__shouldCallNew(Type) | |
accept(String) | |
addXppProxyReference(Type, Object) | (Inherited from XppObjectBase) |
appendText(String) |
Appends a string to the content of the TextBuffer object. |
Call(String, Object[], Type[], Object[]) | (Inherited from XppObjectBase) |
cancelTimeOut(Int32) | (Inherited from XppObjectBase) |
createKernelClass(Object[], Type[], Object[]) | (Inherited from XppObjectBase) |
decryptOld(Int32) | |
delete(Int32, Int32) | |
equal(XppObjectBase) | (Inherited from XppObjectBase) |
finalize() | (Inherited from XppObjectBase) |
find(String, Int32) | |
find(String) |
Searches the TextBuffer object for any occurrence of a string expression. |
fromClipboard() |
Replaces the content of the TextBuffer object with the content of the clipboard. |
fromFile(String, Int32) | |
fromFile(String) |
Replaces the content of a TextBuffer object with the content of the specified file. |
GetIntPtr() | (Inherited from XppObjectBase) |
GetKernelInstanceUniqueId() | (Inherited from XppObjectBase) |
getText() |
Retrieves the current content of the TextBuffer object. |
getTimeOutTimerHandle() | (Inherited from XppObjectBase) |
getValue() | |
getXppProxyReference(Type) | (Inherited from XppObjectBase) |
handle() | |
ignoreCase() | |
ignoreCase(Boolean) | |
insert(String, Int32) | |
IsManagedValid() | (Inherited from XppObjectBase) |
isNext(String) | |
kernelhandle() | |
KernelInstanceDisposed() | (Inherited from XppObjectBase) |
MakeReflectionCall(String, Object[]) | (Inherited from XppObjectBase) |
matchLen() |
Returns the string length of the first match in the TextBuffer object. |
matchPos() |
Returns the character position of the first occurrence of the search string in the TextBuffer object. |
newmethod() |
Initializes a new instance of the TextBuffer class. |
nextToken() | |
nextToken(Boolean, String) | |
nextToken(Boolean) | |
notify() | (Inherited from XppObjectBase) |
notifyAll() | (Inherited from XppObjectBase) |
numLines() |
Retrieves the number of lines in the TextBuffer object. |
objectOnServer() |
Obsolete.
(Inherited from XppObjectBase)
|
regularExpressions() | |
regularExpressions(Boolean) | |
removeChar(String) | |
replace(String, String) | |
setText(String) |
Sets the content of the TextBuffer object to the specified string, overwriting any existing content. |
setTimeOut(String, Int32, Boolean) |
Obsolete.
(Inherited from XppObjectBase)
|
setTimeOut(String, Int32) |
Obsolete.
(Inherited from XppObjectBase)
|
size() | |
strHashKey(String) | |
subStr(Int32, Int32) |
Retrieves part of the content of the TextBuffer object (a substring). |
toClipboard() |
Copies the content of a TextBuffer object to the clipboard. |
toFile(String, Int32) | |
toFile(String) |
Saves the content of the TextBuffer object to a file. |
token() | |
ToString() |
Returns a string that represents the current object. |
usageCount() | (Inherited from XppObjectBase) |
VerifyKernelClass() | (Inherited from XppObjectBase) |
wait() | (Inherited from XppObjectBase) |
Xml() | (Inherited from XppObjectBase) |
Xml(Int32) | (Inherited from XppObjectBase) |