HtmlPanel
Wisej.Web.HtmlPanel
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.1.0.0)
Represents a control that displays any HTML file and a corresponding CSS style sheet as embedded HTML.
C#
VB.NET
public class HtmlPanel : Control
Public Class HtmlPanel
Inherits Control

Constructors

HtmlPanel()

Initializes a new instance of the HtmlPanel class.

Properties

AllowNavigation

Boolean: Returns or sets whether clicking on a link in the Html panel can navigate to the URL specified in the link.

BorderStyle

BorderStyle: Indicates the border style for the control.

Css

String: Returns or sets the CSS rules to apply to the html content.

Html

String: Returns or sets the HTML text to display in the HtmlPanel control.

HtmlSource

String: Returns or sets the html file name to display in the HtmlPanel control.

ScrollBars

ScrollBars: Returns or sets the type of scroll bars to display for the HtmlPanel control.

StyleSheetSource

String: Returns or sets the css file name to apply to the html text in HtmlPanel control.

Events

ElementClick

HtmlPanelElementClickHandler Fired when the user clicks on any element inside the html panel.

HtmlChanged

EventHandler Fired when the Html property is changed.

HtmlSourceChanged

EventHandler Fired when the HtmlSource property is changed.

Inherited

Properties

Name
Description
From
Returns or sets the description that will be reported to accessibility client applications. It is assigned to the "alt" attribute of the browser element.
Control
Returns or sets the name of the control for use by accessibility client applications. It is assigned to the "name" attribute of the browser element.
Control
Returns or sets the accessible role of the control that will be reported to accessibility client applications. It is assigned to the "role" attribute of the browser element.
Control
AllowDrag
Returns or sets whether the control can initiate a drag-drop operation.
Control
AllowDrop
Returns or sets whether the control can accept data that the user drags onto it.
Control
Anchor
Returns or sets the edges of the container to which a control is bound and determines how a control is resized with its parent.
Control
Anonymous
Returns or sets whether the control receives pointer events. Anonymous controls let pointer events bubble to their parents.
Control
Sets the appearance key for the theme engine.
Control
Returns or sets the background image displayed in the control.
Control
Returns or sets the background image layout as defined in the ImageLayout enumeration.
Control
Returns or sets the background image displayed in the control.
Control
Returns a flag indicating that the control is becoming the active control.
Control
Returns or sets the BindingContext for the control.
Control
Bottom
Returns the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area.
Control
Bounds
Returns or sets the size and location of the control including its non-client area, in pixels and relative to the parent control.
Control
Determines whether the control can execute a command.
Control
CanFocus
Returns whether the control can receive focus.
Control
CanSelect
Returns whether the control can be selected.
Control
Capture
Returns or sets whether the control has captured the mouse.
Control
Returns or sets whether the control causes validation to be performed on controls that require to be validated when this control receives focus.
Control
Returns a collection of client events and JavaScript listeners. You may attach multiple listeners to same event.
Control
Returns the client rectangle of the control.
Control
Returns or sets the height and width of the client area.
Control
Indicates whether the control, or one of its child controls, has the input focus.
Control
Returns or sets the shortcut menu associated with the control.
Control
Controls
Returns the collection of controls contained within the control.
Control
Created
Returns a value indicating whether the control has been created.
Control
CssClass
Returns or sets additional CSS class names to add to the widget.
Control
CssStyle
Returns or sets the custom CSS styles to add to the widget.
Control
Cursor
Returns or sets the cursor that is displayed when the mouse pointer is over the control.
Control
Returns the data bindings for the control.
Control
Returns the rectangle that represents the virtual display area of the control.
Control
Disposing
Returns whether the control is in the process of disposing itself and child controls.
Control
Dock
Returns or sets which control borders are docked to its parent control and determines how a control is resized with its parent.
Control
Enabled
Returns or sets whether the control can respond to user interaction.
Control
Enables or disables the browser's context menu.
Control
Focusable
Returns or sets whether the control can gain the focus.
Control
Focused
Returns a value indicating whether the control has input focus.
Control
Handle
Returns the unique server-side id (handle) for this component.
Control
Returns whether the control contains any child control.
Control
Returns whether the control specifies data bindings.
Control
Check if the control defines any responsive profile without forcing the creation of the collection.
Control
Checks if the UserData dynamic object was created and has any value.
Control
Height
Returns or sets the height of the control.
Control
Returns or sets an initialization script to execute when the widget is created (or reloaded) in the browser.
Control
Returns whether the control has been disposed.
Control
Returns if the control has a server-side component id (handle) associated with it.
Control
Returns whether the control is mirrored.
Control
Returns the control's layout engine.
Control
Left
Returns or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.
Control
Location
Returns or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.
Control
Margin
Returns or sets the space between controls.
Control
Returns or sets the maximum size for the control.
Control
Returns or sets the minimum size for the control.
Control
Movable
Returns or sets whether the control can be moved by dragging.
Control
Name
Gets or sets the name of the control.
Control
Padding
Returns or sets padding within the control.
Control
Parent
Returns or sets the parent container of the control.
Control
Returns the preferred size in which the control can fit.
Control
Returns or sets the edges of the control that can be dragged to resize the control.
Control
Returns the collection of responsive properties that have been set for this control.
Control
Right
Return the distance, in pixels, between the right edge of the control and the left edge of its container's client area.
Control
Returns or sets whether the control's elements are aligned right-to-left to support RTL languages.
Control
Returns or sets whether the text in the control can be selected in the browser by the user by dragging the pointer. [Since 2.5.22]
Control
Returns or sets whether the control is blocked by the ajax loader.
Control
Size
Returns or sets the height and width of the control.
Control
States
Returns or sets additional theme states to the client widget.
Control
TabIndex
Returns or sets the tab order of the control within its container.
Control
TabStop
Returns or sets whether the user can give the focus to this control using the TAB key and the Focusable property is set to true.
Control
Tag
Returns or sets the object that contains data about the control.
Control
Returns or sets the tooltip text to show for this control.
Control
Top
Returns or sets the distance, in pixels, between the top edge of the control and the top edge of its container's client area.
Control
Returns the parent control that is not parented by another Form. Typically, this is the outermost Form that the control is contained in.
Control
UserData
Returns a dynamic object that can be used to store custom data in relation to this control.
Control
Returns or sets whether to use the wait cursor for the current control and all child controls.
Control
Returns a flag indicating that the validation has been canceled.
Control
Visible
Returns or sets whether the control and all its child controls are displayed.
Control
Width
Returns or sets the width of the control.
Control

Methods

Name
Description
From
Adds a new listener script to the event name to the client widget.
Control
Adds the CSS class name to the widget element. If the class already exists in the CssClass it's not added.
Control
Adds the specified theme state to the widget.
Control
Executes the specified delegate asynchronously.
Control
Executes the specified delegate asynchronously.
Control
Brings the control to the front of the z-order.
Control
Runs the JavaScript function within the component's context in the browser.
Control
Runs the JavaScript function within the component's context in the browser and returns the value to the callback method.
Control
Asynchronously runs the JavaScript function within the component's context in the browser and returns an awaitable Task containing the value returned by the remote call.
Control
Centers the position of the control within the bounds of the parent.
Control
Centers the position of the control within the bounds of the parent either horizontally, vertically or both.
Control
Indicates whether the specified control is a child of this control.
Control
Creates and register this control and all its children.
Control
Begins a drag-and-drop operation.
Control
Begins a drag-and-drop operation.
Control
Begins a drag-and-drop operation.
Control
Begins a drag-and-drop operation.
Control
Begins a drag-and-drop operation.
Control
Retrieves the return value from the asynchronous operation represented by asyncResult .
Control
Runs the javaScript code within the component's context in the browser.
Control
Runs the javaScript code within the component's context in the browser and returns the value to the callback method.
Control
Asynchronously runs the javaScript code within the component's context in the browser and returns an awaitable Task that contains the value returned by the remote call.
Control
Retrieves the form that the control is on.
Control
Retrieves the page that the control is on.
Control
Focus()
Sets input focus to the control.
Control
Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type.
Control
Retrieves the child control that is located at the specified coordinates.
Control
Returns the script associated to the listener identified by id .
Control
Returns the scripts for all the listeners attached to the event name .
Control
Returns the next IContainerControl up the control's chain of parents.
Control
Retrieves the next control forward or back in the tab order of child controls.
Control
Retrieves the value of the specified control style bit for the control.
Control
Checks whether the specified event name has any listener attached.
Control
Returns true if the property CssClass contains the specified class name .
Control
Checks whether the specified theme state is present in the States property.
Control
Hide()
Conceals the control from the user.
Control
Causes the control to update the client side widget. When in design mode, causes the rendered control to update its entire surface in the designer.
Control
Causes the control to update the client side widget. When in design mode, causes the rendered control to update its entire surface in the designer.
Control
Executes the specified delegate.
Control
Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments.
Control
Arranges all the child Control using the specified dock style, spaced by spacing pixels.
Control
Arranges all the child Control using the specified dock style, spaced by spacing pixels.
Control
Arranges all the child Control using the specified dock style, spaced by spacing pixels.
Control
Arranges all the child Control using the specified dock style, spaced by spacing pixels.
Control
Arranges all the child Control in the specified direction , spaced by spacing pixels.
Control
Arranges all the child Control in the specified direction , spaced by spacing pixels, and constrained within the specified viewArea .
Control
Arranges the specified child controls in the specified direction , spaced by spacing pixels.
Control
Arranges the specified child controls in the specified direction , spaced by spacing pixels, and constrained within the specified viewArea .
Control
Forces the control to apply layout logic to all its child controls.
Control
Forces the control to apply layout logic to all its child controls.
Control
Computes the location of the specified screen point into client coordinates.
Control
Computes the location of the specified client point into screen coordinates.
Control
Computes the size and location of the specified screen rectangle in client coordinates.
Control
Computes the size and location of the specified client rectangle in screen coordinates.
Control
Refresh()
Forces the control to update corresponding client widget. When in DesignMode it forces a full redraw of the designer surface for this control, including the non-client areas such as the caption of forms or panels.
Control
Forces the control to update corresponding client widget. When in DesignMode it forces a full redraw of the designer surface for this control and optionally of its children, including the non-client areas such as the caption of forms or panels.
Control
Detaches and removes the listener identified by id .
Control
Removes all the listeners attached to the event name .
Control
Removes the specified css class name from the control's CssClass property.
Control
Removes the specified theme state from the widget.
Control
Removes all the data bindings from the control.
Control
Resumes layout logic.
Control
Resumes layout logic, optionally forcing an immediate layout of all pending layout requests.
Control
Scrolls the control into view in the container using the specified alignX and alignY preferences.
Control
Scrolls the child control into view.
Control
Select()
Activates a control.
Control
Activates the next control in the list according to the specified selection rules.
Control
Sends the control to the back of the z-order.
Control
Sets the bounds of the control to the specified location and size.
Control
Sets the specified bounds of the control to the specified location and size.
Control
Show()
Displays the control to the user.
Control
Suspends the layout logic for the control.
Control
Update()
Causes the control to update the corresponding client side widget. When in design mode, causes the rendered control to update its entire surface in the designer.
Control
Validates all selectable child controls in the container, including descendants. This is equivalent to calling ValidateChildren(ValidationConstraints.Selectable). See Selectable for details of exactly which child controls will be validated.
Control
Validates all the child controls in the container. Exactly which controls are validated and which controls are skipped is determined by flags .
Control

Events

Name
Description
From
Appear
Fired after the control has been fully rendered on the client.
Control
Fired when the value of the BackgroundImage property changes.
Control
Fired when the BackgroundImageLayout property changes.
Control
Fired when the value of the BecomingActiveControl property changes.
Control
Occurs when the value of the BindingContext property changes.
Control
Click
Fired when the control is clicked.
Control
Fired when the ClientSize property value changes.
Control
Fired when the value of the ContextMenu property changes.
Control
Fired when a new control is added to the ControlCollection.
Control
Fired when a control is made visible the first time, fully created and sent to the client.
Control
Fired when a control is removed from the ControlCollection.
Control
Fired when the value of the Cursor property changes.
Control
Disappear
Fired after the control is no longer visible on the client.
Control
Disposed
Fired when the component is disposed.
Control
Fired when the value of the Dock property changes.
Control
Fired when the control is double-clicked.
Control
DragDrop
Fired when a drag-and-drop operation is completed.
Control
DragEnd
Fired when a drag-drop operation is terminated either by a drop or canceled.
Control
DragEnter
Fired when an object is dragged into the control's bounds.
Control
DragLeave
Fired when an object is dragged out of the control's bounds.
Control
DragOver
Fired when an object is dragged over the control's bounds.
Control
DragStart
Fired when a drag-drop operation is started by the user.
Control
Fired when the Enabled property value has changed.
Control
EndMove
Fired when a control is Movable and the user ends the move operation.
Control
EndResize
Fired when a control has ResizableEdges and the user ends the resize operation.
Control
GotFocus
Fired when the control gains the focus.
Control
Fired when the user requests help for a control by pressing F1.
Control
Layout
Fired when a control should reposition its child controls.
Control
Fired when the Location property value has changed.
Control
LongTap
Fired when a pointer holds on the screen.
Control
LostFocus
Fired when the control loses focus.
Control
Fired when the control's margin changes.
Control
Fired when the control loses mouse capture.
Control
Fired when the control is clicked by the mouse.
Control
Fired when the control is double clicked by the mouse.
Control
MouseDown
Fired when the mouse pointer is over the control and a mouse button is pressed.
Control
Fired when the mouse pointer enters the control.
Control
Fired when the mouse pointer rests on the control.
Control
Fired when the mouse pointer leaves the control.
Control
MouseMove
Fired when the mouse pointer is moved over the control.
Control
MouseUp
Fired when the mouse pointer is over the control and a mouse button is released.
Control
Fired when the mouse wheel moves while the control has focus.
Control
Fired when the control's padding changes.
Control
Paint
Fired when a UserPaint control needs to redraw itself.
Control
Fired when the Parent property value changes.
Control
Pinch
Fired when two finger moved towards or away from each other. It contains the scaling factor of the pinch.
Control
Fired before the KeyDown event when a key is pressed while focus is on this control.
Control
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled.
Control
Resize
Fired when the control is resized.
Control
Fired when the active responsive profile is changed.
Control
Rotate
Fired when two finger moved around a single point. It contains the angle of the rotation.
Control
Fired when the Size property value changes.
Control
StartMove
Fired when a control is Movable and the user begins the move operation.
Control
Fired when a control has ResizableEdges and the user begins the resize operation.
Control
Fired when the control style changed.
Control
Swipe
Fired when a pointer swipes over the screen.
Control
Tap
Fired when a pointer taps on the screen.
Control