IHTMLDocument is an interface that is essentially an โindestructibleโ contract that represents what will provide the object that implements it.
, , , .
, :
public interface IMyInterface {
public int Property1 { get; set; }
}
Property2, . , :
public interface IMyInterface2 {
public int Property2 { get;set; }
}
, IMyInterface:
public class MyObject : IMyInterface, IMyInterface2 {
public int Property1 { get {} set {} }
public int Property2 { get {} set {} }
}
, , :
if (obj is IMyInterface) {
Console.WriteLine(((IMyInterface)obj).Property1);
if (obj is IMyInterface2) {
}
}
, , Microsoft. mshtml, IHTMLDocument, COM-, COM - . , Microsoft , /.
IHTMLTxtRange - TextRange.
"" "".
http://www.webreference.com/js/column12/trmethods.html