- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
public int RowSpan {
get {
int p = HtmlText.IndexOf("rowspan");
if (p > -1) {
int index = HtmlText.IndexOf(" ", p + 8);
int index1 = HtmlText.IndexOf(">", p + 8);
int index2 = HtmlText.IndexOf("/", p + 8);
if ((index > index1) && (index1 != -1))
index = index1;
if ((index > index2) && (index2 != -1))
index = index2;
string s = HtmlText.Substring(p + 8, index - p - 8);
return Convert.ToInt16(s);
} else
return -1;
}
set {
if (value == 0) {
HtmlText = HtmlText.Replace("rowspan", string.Empty);
}
}
}
public int ColSpan {
get {
int p = HtmlText.IndexOf("colspan");
if (p > -1) {
int index = HtmlText.IndexOf(" ", p + 8);
int index1 = HtmlText.IndexOf(">", p + 8);
int index2 = HtmlText.IndexOf("/", p + 8);
if ((index > index1) && (index1 != -1))
index = index1;
if ((index > index2) && (index2 != -1))
index = index2;
string s = HtmlText.Substring(p + 8, index - p - 8);
return Convert.ToInt16(s);
} else
return -1;
}
}
bakagaijin 02.11.2015 17:46 # +1
imihajlov 02.11.2015 18:10 # +3
roman-kashitsyn 02.11.2015 18:18 # +4
bakagaijin 03.11.2015 09:05 # 0
Lokich 03.11.2015 12:42 # 0
roman-kashitsyn 03.11.2015 12:56 # +1
Lokich 02.11.2015 20:02 # +2
guest 03.11.2015 00:53 # −1
Lokich 03.11.2015 12:42 # +2
nihau 02.11.2015 18:33 # +1
Lokich 02.11.2015 20:02 # 0