public int CompareTo(Object obj) {
if (image != null)
return 0;
if (obj == null) {
return -1;
}
PdfFont pdfFont;
try {
pdfFont = (PdfFont) obj;
if (font != pdfFont.font) {
return 1;
}
if (this.Size != pdfFont.Size) {
return 2;
}
return 0;
}
catch (InvalidCastException) {
return -2;
}
}