This interface is implemented by a sequence object created through a File Document object. Use the methods of this interface from a scripting languages to construct a pattern to be passed to various methods of the IFileDocument interface.
interface ISequence extends ${IDispatch} {
// Properties
readonly ${Empty}: boolean;
${Length}: number;
[${Value}: number]: number;
// Methods
${AddData}(Type: ${SequenceDataType}, Values: number[]): void;
${AddText}(Text: , Unicode: ): void;
${Clear}(): void;
${Copy}(): ${ISequence};
${CreateSubSequence}(Index: number, Length: number): ${ISequence};
${Remove}(Index: number, Length: number): void;
}
// This interface is not available in managed environment
// This interface is not available in native environment
readonly Empty: boolean;
// This property is not available in managed environment
// This property is not available in native environment
true
if the sequence is empty or false
otherwise.
Length: number;
// This property is not available in managed environment
// This property is not available in native environment
Retrieve or change the current sequence length. Sequence length is expressed in bytes. When you change the sequence length, it is either truncated or extended. If the sequence was extended, it may contain garbage.
[Value: number]: number;
// This property is not available in managed environment
// This property is not available in native environment
Retrieve the byte from sequence.
AddData(Type: ${SequenceDataType}, Values: number[]): void;
// This method is not available in managed environment
// This method is not available in native environment
Type
Values
Add numeric data to a sequence. This method is used to add bytes, words, double words, quad words, floats and doubles to a sequence. Data is added to the end of the sequence.
Adding values
var fdoc = new ActiveXObject("FileDocument.FileDocument");
var seq = fdoc.${CreateSequence#IFileDocument.CreateSequence}();
seq.AddData(SequenceDataBytes, 0x0d, 0x0a); // add two bytes to a sequence
seq.AddData(SequenceDataDwords | SequenceDataBigEndian,
0x12345678, 0xfedcba98, 0, 70000); // add a number of big-endian double words to a sequence
AddText(Text: , Unicode: ): void;
// This method is not available in managed environment
// This method is not available in native environment
Text
Unicode
true
to treat string characters as UNICODE or false
to treat them as ANSI.Add textual data to a sequence. New data is appended to the end of the sequence.
Adding text
var fdoc = new ActiveXObject("FileDocument.FileDocument");
var seq = fdoc.${CreateSequence#IFileDocument.CreateSequence}();
seq.AddText("<p>", false);
Clear(): void;
// This method is not available in managed environment
// This method is not available in native environment
Clear the sequence.
Copy(): ${ISequence};
// This method is not available in managed environment
// This method is not available in native environment
Create a copy of the sequence.
CreateSubSequence(Index: number, Length: number): ${ISequence};
// This method is not available in managed environment
// This method is not available in native environment
Index
Length
Create a sub-sequence of this sequence.
Remove(Index: number, Length: number): void;
// This method is not available in managed environment
// This method is not available in native environment
Index
Length
Remove a part of the sequence.