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.
Unfortunately, activation email could not send to your email. Please try again.

Applying specific CSS formating to IHTMLElements

Thread ID:

Created:

Updated:

Platform:

Replies:

23420 Jan 12,2005 07:58 AM Feb 1,2005 08:25 AM Windows Forms 3
loading
Tags: HTMLUIControl
Adam Flynn
Asked On January 12, 2005 07:58 AM

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 03:37 AM

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 01:18 PM

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 08:25 AM

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

CONFIRMATION

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.

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.

;