We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Applying specific CSS formating to IHTMLElements

Thread ID:





23420 Jan 12,2005 12:58 PM UTC Feb 1,2005 01:25 PM UTC WinForms 3
Tags: HTMLUIControl
Adam Flynn
Asked On January 12, 2005 12:58 PM UTC

Using the HTMLUIControl.GetElementAtClientPoint() method I acquire a reference to a IHTMLElement. If I want to change the formatting or presentation of that element, how would I achieve that? The IHTMLElement.Format property is read only and there does not appear to be an applicable method to alter it. In the same vein, how would I alter its Visible status? Thanks for the help, Adam

Davis Jebaraj [Syncfusion]
Replied On January 13, 2005 08:37 AM UTC

Hi Adam, You can access the elements as BaseElement and set its IsVisible property to be false to change the element''s visiblity. The style for a element can also be changed through the Attributes["class"].Value property. Please refer to the sample linked to below: F23420HTMLUIElementCSS_8850.zip Regards, Davis

Adam Flynn
Replied On January 26, 2005 06:18 PM UTC

I was hoping to create a custom collection of HTMLFormat objects, representing specific CSS formats, and apply them to individual IHTMLElements. Can you explain if there is a way to programmatically create (i.e. not read the styles from a file) an object that contains a specific css style and then apply it to one or more IHTMLElements? Thanks.

Davis Jebaraj [Syncfusion]
Replied On February 1, 2005 01:25 PM UTC

Hi Adam, There is currently no way to assign HTMLFormat objects directly to HTMLElements. I have requested a feature request for this and I will update you as soon as the feature has been implemented. Thank you for your patience. Regards, Davis


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon