This is the discussion forum for the HtmlEditor. See also the
HtmlEditor home page, where you can download the control, and the
Documentation Wiki, a collaborative project for documenting the control.
styleshhetcollection
Posted by:
Andrei (---.rdsnet.ro)
Date: Thursday, 18-Jun-2009, 19:14:35
please help a beginner with this.
i want to use this code for accessing an html page stylesheet rules:
Dim ss As onlyconnect.IHTMLStyleSheet
Dim ssCol As onlyconnect.IHTMLStyleSheetsCollection
Dim ssR As onlyconnect.IHTMLStyleSheetRule
ssCol = HtmlEditor1.HtmlDocument2.GetStyleSheets
ss = ssCol.item(0) -- one style on the page, here it gives me a null error in vb express
Dim a As Integer
For a = 0 To 15 ' I have 16 rules on a test page
ssR = ss.GetRules.Item(a)
MsgBox(ssR.GetStyle.GetCssText)
Next a
the item function accept for index a pvarIndex type variable I know, but how to I use an integer for index.
again please help a poor beginner.
thank you