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,
DJDavis Jebaraj Syncfusion Team January 13, 2005 03:37 AM
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:
AFAdam FlynnJanuary 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?
DJDavis Jebaraj Syncfusion Team February 1, 2005 08:25 AM
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.