Class FormExtensions
- Namespace
- SkyrimForge.Game
- Assembly
- SkyrimForge.Game.dll
Provides extension members for Form.
public static class FormExtensions
- Inheritance
-
FormExtensions
- Inherited Members
Methods
GetByEditorId(string)
Gets the form with editorId.
public static Form GetByEditorId(string editorId)
Parameters
editorIdstringThe editor ID.
Returns
- Form
The form.
Remarks
The game retains editor IDs only for keywords and a few other form types.
Exceptions
- ArgumentNullException
editorIdisnull.- InvalidOperationException
No form has
editorId.
GetByEditorId<TForm>(string)
Gets the form with editorId as a TForm.
public static TForm GetByEditorId<TForm>(string editorId) where TForm : struct, IForm
Parameters
editorIdstringThe editor ID.
Returns
- TForm
The form.
Type Parameters
TForm
Remarks
The game retains editor IDs only for keywords and a few other form types.
Exceptions
- ArgumentNullException
editorIdisnull.- InvalidOperationException
No form has
editorId, or the form is not aTForm.- ArgumentException
SkyrimForge.Game.FormCasts declares no cast to
TForm.