Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions WindowsForms/Html-Viewer/Control-Events.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ control: HTMLUI
documentation: ug
---

# Control Events in Windows Forms HTMLUI
# Control Events in WinForms HTML Viewer

HTMLUI control comes with a rich set of events to help the application developer in keeping track of the execution. These events are programmed based on the Event arguments containing data related to the event.
WinForms HTML Viewer control comes with a rich set of events to help the application developer in keeping track of the execution. These events are programmed based on the Event arguments containing data related to the event.

The events executed by the HTMLUI control are as follows:
The events executed by the WinForms HTML Viewer control are as follows:

* [LinkClicked event](#linkclicked-event)
* [LoadStarted event](#loadstarted-event)
Expand Down Expand Up @@ -94,7 +94,7 @@ End Sub

## LoadStarted event

This [LoadStarted event](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html) is raised when a new HTML document has started loading into the HTMLUI control from the specified resource.
This [LoadStarted event](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html) is raised when a new HTML document has started loading into the WinForms HTML Viewer control from the specified resource.

{% tabs %}

Expand Down Expand Up @@ -140,7 +140,7 @@ End Sub

## LoadFinished event

This [LoadFinished event](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html) is raised after the loading of HTML document inside the HTMLUI control is completed.
This [LoadFinished event](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html) is raised after the loading of HTML document inside the WinForms HTML Viewer control is completed.

{% tabs %}

Expand Down Expand Up @@ -236,7 +236,7 @@ End Sub

## PreRenderDocument event

This [PreRenderDocument event](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html) is raised when the elements in the HTML document are created in the HTMLUI control, but their size and location are not calculated yet.
This [PreRenderDocument event](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html) is raised when the elements in the HTML document are created in the WinForms HTML Viewer control, but their size and location are not calculated yet.

{% tabs %}

Expand Down Expand Up @@ -286,7 +286,7 @@ End Sub

## ShowTitleChanged event

This [ShowTitleChanged event](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html) is raised after the ShowTitle property of the HTMLUI control is changed. The event handler receives its data from the ValueChangedEventArguments. The following properties are associated with the ShowTitleChanged event handling.
This [ShowTitleChanged event](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html) is raised after the ShowTitle property of the WinForms HTML Viewer control is changed. The event handler receives its data from the ValueChangedEventArguments. The following properties are associated with the ShowTitleChanged event handling.



Expand Down Expand Up @@ -338,7 +338,7 @@ End Sub

## TitleChanged event

The [TitleChanged event](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html) is raised after the Title property of the HTMLUI control is changed. The Title value can be set explicitly by the user or it can be extracted from the title tag of the HTML document that is to be loaded into the HTMLUI control.
The [TitleChanged event](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html) is raised after the Title property of the WinForms HTML Viewer control is changed. The Title value can be set explicitly by the user or it can be extracted from the title tag of the HTML document that is to be loaded into the control.

The event handler receives its data from the ValueChangedEventArguments. The following properties are associated with the TitleChanged event handling.

Expand Down Expand Up @@ -731,9 +731,9 @@ End Sub

{% endtabs %}

## HTMLUI control events sample
## WinForms HTML Viewer control events sample

This sample illustrates the different events executed by the HTMLUI control.
This sample illustrates the different events executed by the WinForms HTML Viewer control.



Expand Down
8 changes: 4 additions & 4 deletions WindowsForms/Html-Viewer/Custom-Controls.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ control: HTMLUI
documentation: ug
---

# Custom controls in Windows Forms HTMLUI control
# Custom controls in WinForms HTML Viewer control

The Custom Controls are not standard HTML elements but user-defined controls that are created for improving the application's richness and productivity.

Expand Down Expand Up @@ -49,7 +49,7 @@ NumericUpDown:<CUSTOM class="NumericUpDown" assembly="System.Windows.Forms"></CU

{% endtabs %}

The custom controls defined in the HTML document are interfaced with their equivalent Windows Forms control with the help of the PreRenderDocument event. The PreRenderDocument event occurs at a time when the HTML document is being loaded into the HTMLUI control, but the elements are not yet positioned.
The custom controls defined in the HTML document are interfaced with their equivalent Windows Forms control with the help of the PreRenderDocument event. The PreRenderDocument event occurs at a time when the HTML document is being loaded into the WinForms HTML Viewer control, but the elements are not yet positioned.

The HTML elements are loaded into an hash table with an equivalent id as their key. An equivalent Base class object, here BaseElement class, is defined to link the HTML elements stored in the hash table with the help of the key associated with the element. The BaseElement is the Base class for all HTML elements. All HTML tag elements inherit this class.

Expand Down Expand Up @@ -121,7 +121,7 @@ End Sub

{% endtabs %}

The following image illustrates three custom controls created using HTMLUI.
The following image illustrates three custom controls created using WinForms HTML Viewer.



Expand All @@ -131,7 +131,7 @@ The following image illustrates three custom controls created using HTMLUI.

## Custom controls sample

This sample demonstrates the implementation of Custom Controls by using HTMLUI.
This sample demonstrates the implementation of Custom Controls by using WinForms HTML Viewer.

![Custom-Controls_img2](Custom-Controls_images/Custom-Controls_img2.jpeg)

Expand Down
10 changes: 5 additions & 5 deletions WindowsForms/Html-Viewer/Element-Events.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ control: HTMLUI
documentation: ug
---

# Element Events in Windows Forms HTMLUI
# Element Events in WinForms HTML Viewer

Each HTML element in an HTML document is made to support events, such asClick, DoubleClick, MouseMove, KeyPress, and so on just like the Windows Forms controls.

Expand Down Expand Up @@ -150,7 +150,7 @@ End Sub

{% endtabs %}

Another important feature of the HTMLUI is its Bubbling Event architecture. With this architecture, a single common event handler defined for a particular event of the parent can be used for all the Child Elements bound to that parent while executing the same event.
Another important feature of the WinForms HTML Viewer is its Bubbling Event architecture. With this architecture, a single common event handler defined for a particular event of the parent can be used for all the Child Elements bound to that parent while executing the same event.


{% tabs %}
Expand Down Expand Up @@ -285,9 +285,9 @@ End Sub

{% endtabs %}

## HTMLUI bubbling events sample
## WinForms HTML Viewer bubbling events sample

This sample demonstrates the implementation of Bubbling Event architecture in HTMLUI.
This sample demonstrates the implementation of Bubbling Event architecture in WinForms HTML Viewer.

![Element-Events_img1](Element-Events_images/Element-Events_img1.jpeg)

Expand All @@ -301,7 +301,7 @@ By default, this sample can be found under the following location:

...\_My Documents\Syncfusion\EssentialStudio\Version Number\Windows\HTMLUI.Windows\Samples\Advanced Editor Functions\ActionGroupingDemo_

## HTMLUI element events sample
## WinForms HTML Viewer element events sample

This sample shows how element events are handled for creating effective user interfaces.

Expand Down
8 changes: 4 additions & 4 deletions WindowsForms/Html-Viewer/Element-Format.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ control: HTMLUI
documentation: ug
---

# Element Format in Windows Forms HTMLUI
# Element Format in WinForms HTML Viewer

Essential<sup>®</sup> HTMLUI supports formatting of not only the entire HTML document as a whole, but also the individual elements. With HTMLUI, the user can replace any HTML element into some other format before displaying, in a view to develop advanced user interactivity.
Essential<sup>®</sup> WinForms HTML Viewer supports formatting of not only the entire HTML document as a whole, but also the individual elements. With the control, the user can replace any HTML element into some other format before displaying, in a view to develop advanced user interactivity.


The following snippet shows how a text content can be replaced with an image in a text sequence.
Expand Down Expand Up @@ -79,15 +79,15 @@ End Sub

{% endtabs %}

The following image shows the text element Time replaced by an image when displayed using HTMLUI.
The following image shows the text element Time replaced by an image when displayed using WinForms HTML Viewer.

![Element-Format_img1](Element-Format_images/Element-Format_img1.png)



## ElementFormat sample

This sample illustrates Element Formatting in HTMLUI.
This sample illustrates Element Formatting in WinForms HTML Viewer.



Expand Down
8 changes: 4 additions & 4 deletions WindowsForms/Html-Viewer/Exporting.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ control: HTMLUI
documentation: ug
---

# Exporting in Windows Forms HTMLUI control
# Exporting in WinForms HTML Viewer control

Essential<sup>®</sup> HTMLUI supports the export of HTML documents. These documents that are available in the HTMLUI control can be exported as images. The HTMLUI control uses the InputHTML class to render the HTML document and then converts the available document to Bitmaps.
Essential<sup>®</sup> WinForms HTML Viewer supports the export of HTML documents. These documents that are available in the control can be exported as images. It uses the InputHTML class to render the HTML document and then converts the available document to Bitmaps.

{% tabs %}

Expand Down Expand Up @@ -137,9 +137,9 @@ End Function

{% endtabs %}

## HTMLUIExporting sample
## WinForms HTML Viewer Exporting sample

This sample illustrates the export of HTML documents loaded into the HTMLUI to images.
This sample illustrates the export of HTML documents loaded into the WinForms HTML Viewer to images.

![Exporting_img1](Exporting_images/Exporting_img1.jpeg)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: How To Access All the Child Elements | Syncfusion®
description: Learn how to how To Access All the Child Elements in Syncfusion Windows Forms Html Viewer (HTMLUI) control.
description: Learn how to Access All the Child Elements in Syncfusion Windows Forms Html Viewer (HTMLUI) control.
platform: windowsforms
control: HTMLUIControl
documentation: ug
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
layout: post
title: How To Access the HTML Elements Loaded Into the Co | Syncfusion®
description: Learn how to how To Access the HTML Elements Loaded Into the Co in Syncfusion Windows Forms Html Viewer (HTMLUI) control.
title: How To Access the HTML Elements Loaded Into the Control | Syncfusion®
description: Learn how to Access the HTML Elements Loaded Into the Control in Syncfusion Windows Forms Html Viewer (HTMLUI) control.
platform: windowsforms
control: HTML UI
documentation: ug
---

# How To Access the HTML Elements Loaded Into the Co
# How To Access the HTML Elements Loaded Into the Control

The HTML elements are accessed in HTMLUI for developing advanced UIs. The HTML elements are collected in a collection class. When the Hashtable is used as a collection class, it stores the HTML elements with a key, specific for each element.
The HTML elements are accessed in WinForms HTML Viewer for developing advanced UIs. The HTML elements are collected in a collection class. When the Hashtable is used as a collection class, it stores the HTML elements with a key, specific for each element.

These elements are then assigned to the code variables. The Code Variables are the objects of the classes that are responsible for the functionality of the tag elements. These classes contain the definitions for the properties, methods and events for the tag elements. These variables will be used in accessing the HTML elements inside the code.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
layout: post
title: How To Access the Inner HTML Text Of the Current H | Syncfusion®
description: Learn how to how To Access the Inner HTML Text Of the Current H in Syncfusion Windows Forms Html Viewer (HTMLUI) control.
title: How To Access the Inner HTML Text in the HTMLUI control | Syncfusion®
description: Learn how to Access the Inner HTML Text Of the Current HTML element in the HTMLUI control in Syncfusion Windows Forms Html Viewer (HTMLUI) control.
platform: windowsforms
control: HTML UI
documentation: ug
---

# How To Access the Inner HTML Text Of the Current H
# How To Access the Inner HTML Text in the WinForms HTML Viewer control

You can access the inner HTML text of the current HTML element in the HTMLUI control by using the InnerHTML property of the HTMLUI control. This property also allows access to the child elements of the HTML elements.
You can access the inner HTML text of the current HTML element in the WinForms HTML Viewer control by using the InnerHTML property of the control. This property also allows access to the child elements of the HTML elements.

The following HTML document contains a div element. The code snippet shows how the inner text of the element is accessed and displayed in the output at run time.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
layout: post
title: How To Access the Name Of an HTML Element At Run t | Syncfusion®
description: Learn how to how To Access the Name Of an HTML Element At Run t in Syncfusion Windows Forms Html Viewer (HTMLUI) control.
title: How To Access the Name Of an HTML Element At Run time | Syncfusion®
description: Learn how to Access the Name Of an HTML Element At Run time in Syncfusion Windows Forms Html Viewer (HTMLUI) control.
platform: windowsforms
control: HTML UI
documentation: ug
---

# How To Access the Name Of an HTML Element At Run t
# How To Access the Name Of an HTML Element At Run time

The element.Name property gets the name of the tag that defines the element as an attribute, and not the name of the element defined by the user. You can access the name of the element with the help of the element.Attributes property.

The following HTML document illustrates how an input element with a name is declared and accessed in HTMLUI.
The following HTML document illustrates how an input element with a name is declared and accessed in WinForms HTML Viewer.

{% tabs %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ control: HTML UI
documentation: ug
---

# How to Add an Attribute to HTML Element in Html Viewer
# How to Add an Attribute to HTML Element in WinForms HTML Viewer

You can add an attribute to an HTML element using the Add method of the Attributes property, as shown in the following code snippet.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ control: HTMLUIControl
documentation: ug
---

# How to Change HTML Element Characteristic in Html Viewer
# How to Change HTML Element Characteristic in WinForms HTML Viewer

The characteristic of an element can be easily changed in the PreRenderDocument event of the HTMLUI control.
The characteristic of an element can be easily changed in the PreRenderDocument event of the WinForms HTML Viewer control.

The [PreRenderDocument](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html) event is raised when the elements in the HTML document are created in the HTMLUI control, but their size and location are not calculated yet.
The [PreRenderDocument](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html) event is raised when the elements in the HTML document are created in the WinForms HTML Viewer control, but their size and location are not calculated yet.

{% tabs %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ control: HTMLUIControl
documentation: ug
---

# How to Change Default Font for Rendering in Html Viewer
# How to Change Default Font for Rendering in WinForms HTML Viewer

HTMLUI uses a default font to render the text from the HTML document, in cases where there are no specifications for the font to be used. You can change this default font by using the [DefaultFormat.Font](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html#Syncfusion_Windows_Forms_HTMLUI_HTMLUIControl_DefaultFormat) property, written while initializing the HTMLUI control.
WinForms HTML Viewer uses a default font to render the text from the HTML document, in cases where there are no specifications for the font to be used. You can change this default font by using the [DefaultFormat.Font](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl.html#Syncfusion_Windows_Forms_HTMLUI_HTMLUIControl_DefaultFormat) property, written while initializing the control.

{% tabs %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ documentation: ug

# How to delete an HTML Element

The HTML elements loaded in the HTMLUI control are collected in the IHTMLElementsCollection. You can make use of the Remove method of the [IHTMLElementsCollection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.IHTMLElementsCollection.html) Interface to remove an element from the current collection, and the Refresh method to redraw the HTMLUI control with changes updated in the current document.
The HTML elements loaded in the WinForms HTML Viewer control are collected in the IHTMLElementsCollection. You can make use of the Remove method of the [IHTMLElementsCollection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.HTMLUI.IHTMLElementsCollection.html) Interface to remove an element from the current collection, and the Refresh method to redraw the control with changes updated in the current document.

The following HTML document contains a textbox and a button element. The following code snippet shows how the textbox and the button are removed from the HTMLUI control's display at run time.
The following HTML document contains a textbox and a button element. The following code snippet shows how the textbox and the button are removed from the WinForms HTML Viewer control's display at run time.

{% tabs %}

Expand Down
Loading