Roblox API Reference

ScriptDocument On DevHub

Summary

This class is not creatable. An object of this class cannot be created with Instance.new.
This item is not replicated. Its interface does not cross the network boundary.

Tags: [NotCreatable, NotReplicated]

Inherits (1)

Member index (18)

Type Member History
Tuple CloseAsync () 543
Tuple EditTextAsync (string newText, int startLine, int startCharacter, int endLine, int endCharacter) 530 531 531 532 533
Tuple ForceSetSelectionAsync (int cursorLine, int cursorCharacter, int? anchorLine = nil, int? anchorCharacter = nil) 540
string GetInternalUri () 531
string GetLine (int? lineIndex = nil) 532 536
int GetLineCount () 532
LuaSourceContainer GetScript () 532
string GetSelectedText () 538
Tuple GetSelection () 534
Tuple GetSelectionEnd () 538
Tuple GetSelectionStart () 538
string GetText (int? startLine = nil, int? startCharacter = nil, int? endLine = nil, int? endCharacter = nil) 532 532 536
Tuple GetViewport () 541
bool HasSelectedText () 538
bool IsCommandBar () 531 532
Tuple RequestSetSelectionAsync (int cursorLine, int cursorCharacter, int? anchorLine = nil, int? anchorCharacter = nil) 540
SelectionChanged (int64 positionLine, int64 positionCharacter, int64 anchorLine, int64 anchorCharacter) 534
ViewportChanged (int64 startLine, int64 endLine) 541
57 members inherited from Instance

Removed member index (1)

Type Member History
int GetNumLines () 532

History

Members

CloseAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
No parameters.

History

Tags: [Yields]

EditTextAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
newText string none
startLine int none
startCharacter int none
endLine int none
endCharacter int none

History

Tags: [Yields]

ForceSetSelectionAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
cursorLine int none
cursorCharacter int none
anchorLine int? nil
anchorCharacter int? nil

History

Tags: [Yields]

GetInternalUri On DevHub

Name Type Default
No parameters.

History

GetLine On DevHub

Name Type Default
lineIndex int? nil

History

GetLineCount On DevHub

Name Type Default
No parameters.

History

GetScript On DevHub

Name Type Default
No parameters.

History

GetSelectedText On DevHub

Name Type Default
No parameters.

History

GetSelection On DevHub

Name Type Default
No parameters.

History

GetSelectionEnd On DevHub

Name Type Default
No parameters.

History

GetSelectionStart On DevHub

Name Type Default
No parameters.

History

GetText On DevHub

Name Type Default
startLine int? nil
startCharacter int? nil
endLine int? nil
endCharacter int? nil

History

GetViewport On DevHub

Name Type Default
No parameters.

History

HasSelectedText On DevHub

Name Type Default
No parameters.

History

IsCommandBar On DevHub

Name Type Default
No parameters.

History

RequestSetSelectionAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
cursorLine int none
cursorCharacter int none
anchorLine int? nil
anchorCharacter int? nil

History

Tags: [Yields]

SelectionChanged On DevHub

Name Type Default
positionLine int64 none
positionCharacter int64 none
anchorLine int64 none
anchorCharacter int64 none

History

ViewportChanged On DevHub

Name Type Default
startLine int64 none
endLine int64 none

History

Removed members

GetNumLines

Name Type Default
No parameters.

History

Relevant classes (1)

Relevant members (4)