Class HtmlHelper
Helper class for often used functions
Inheritance
System.Object
HtmlHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Base.Imp.Blazor
Assembly: Fusee.Engine.Imp.Graphics.Blazor.dll
Syntax
public static class HtmlHelper
Methods
AddCanvas(IJSRuntime, String, String, Int32, Int32)
Creates an attaches a canvas to the HTML page
Declaration
public static IJSInProcessObjectReference AddCanvas(IJSRuntime runtime, string divId, string canvasId, int width = 800, int height = 600)
Parameters
Type | Name | Description |
---|---|---|
IJSRuntime | runtime | |
System.String | divId | |
System.String | canvasId | |
System.Int32 | width | |
System.Int32 | height |
Returns
Type | Description |
---|---|
IJSInProcessObjectReference |
AddParagraph(IJSRuntime, String)
Adds a paragraph to the current HTML page
Declaration
public static void AddParagraph(IJSRuntime runtime, string text)
Parameters
Type | Name | Description |
---|---|---|
IJSRuntime | runtime | |
System.String | text |