You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chua CheeWee edited this page May 7, 2026
·
5 revisions
Description
IOTASourceEditor is an editor interface for source files and represents a single source file. Cast an IOTAEditor to IOTASourceEditor using the Supports function, or the as keyword.
Switches the editor to the specified view by view index. The AViewContext parameter is passed along to the specified view which can be used to indicate any view-specific context or selection criteria.
SwitchToView
Switches the editor to the specified view by view identifier. The AViewContext parameter is passed along to the specified view which can be used to indicate any view-specific context or selection criteria.
Properties
There are no properties.
Example
The following example extracts an IOTASourceEditor from an IOTAModule
function GetSourceEditor(const AModule: IOTAModule): IOTASourceEditor;
var
I: Integer;
Editor: IOTAEditor;
begin
Result := nil;
for I := 0 to AModule.GetModuleFileCount - 1 do
begin
Editor := AModule.GetModuleFileEditor(I);
if Supports(Editor, IOTASourceEditor, Result) then
Exit;
end;
end;