Commit 0944f629f0c120dad25580186e84834501d5abfa
1 parent
fbf73630
Exists in
master
Incluindo documentação no módulo C#
Showing
1 changed file
with
72 additions
and
0 deletions
Show diff stats
src/pw3270-sharp/pw3270-sharp.cs
@@ -179,6 +179,14 @@ namespace pw3270 { | @@ -179,6 +179,14 @@ namespace pw3270 { | ||
179 | return str.ToString(); | 179 | return str.ToString(); |
180 | } | 180 | } |
181 | 181 | ||
182 | + /// <summary> | ||
183 | + /// Lib3270 version. | ||
184 | + /// </summary> | ||
185 | + /// | ||
186 | + /// <returns> | ||
187 | + /// Lib3270 version string | ||
188 | + /// </returns> | ||
189 | + /// | ||
182 | public string Version { | 190 | public string Version { |
183 | get { | 191 | get { |
184 | return GetVersion(); | 192 | return GetVersion(); |
@@ -440,30 +448,78 @@ namespace pw3270 { | @@ -440,30 +448,78 @@ namespace pw3270 { | ||
440 | return tn3270_pakey(hSession, key); | 448 | return tn3270_pakey(hSession, key); |
441 | } | 449 | } |
442 | 450 | ||
451 | + /// <summary> | ||
452 | + /// Get screen width | ||
453 | + /// </summary> | ||
454 | + /// | ||
455 | + /// <returns> | ||
456 | + /// Screen width in characters (negative on error) | ||
457 | + /// </returns> | ||
458 | + /// | ||
443 | public int GetWidth() { | 459 | public int GetWidth() { |
444 | return tn3270_get_width(hSession); | 460 | return tn3270_get_width(hSession); |
445 | } | 461 | } |
446 | 462 | ||
463 | + /// <summary> | ||
464 | + /// Screen width in characters | ||
465 | + /// </summary> | ||
466 | + /// | ||
467 | + /// <returns> | ||
468 | + /// Screen width in characters (negative on error) | ||
469 | + /// </returns> | ||
470 | + /// | ||
447 | public int Width { | 471 | public int Width { |
448 | get { | 472 | get { |
449 | return tn3270_get_width(hSession); | 473 | return tn3270_get_width(hSession); |
450 | } | 474 | } |
451 | } | 475 | } |
452 | 476 | ||
477 | + /// <summary> | ||
478 | + /// Get screen height | ||
479 | + /// </summary> | ||
480 | + /// | ||
481 | + /// <returns> | ||
482 | + /// Screen width in characters (negative on error) | ||
483 | + /// </returns> | ||
484 | + /// | ||
453 | public int GetHeight() { | 485 | public int GetHeight() { |
454 | return tn3270_get_height(hSession); | 486 | return tn3270_get_height(hSession); |
455 | } | 487 | } |
456 | 488 | ||
489 | + /// <summary> | ||
490 | + /// Screen height in characters | ||
491 | + /// </summary> | ||
492 | + /// | ||
493 | + /// <returns> | ||
494 | + /// Screen height in characters (negative on error) | ||
495 | + /// </returns> | ||
496 | + /// | ||
457 | public int Height { | 497 | public int Height { |
458 | get { | 498 | get { |
459 | return tn3270_get_height(hSession); | 499 | return tn3270_get_height(hSession); |
460 | } | 500 | } |
461 | } | 501 | } |
462 | 502 | ||
503 | + /// <summary> | ||
504 | + /// Get length of terminal buffer (width * height) | ||
505 | + /// </summary> | ||
506 | + /// | ||
507 | + /// <returns> | ||
508 | + /// Terminal length in characters (negative on error) | ||
509 | + /// </returns> | ||
510 | + /// | ||
463 | public int GetLength() { | 511 | public int GetLength() { |
464 | return tn3270_get_length(hSession); | 512 | return tn3270_get_length(hSession); |
465 | } | 513 | } |
466 | 514 | ||
515 | + /// <summary> | ||
516 | + /// Length of terminal buffer (width * height) | ||
517 | + /// </summary> | ||
518 | + /// | ||
519 | + /// <returns> | ||
520 | + /// Terminal length in characters (negative on error) | ||
521 | + /// </returns> | ||
522 | + /// | ||
467 | public int Length { | 523 | public int Length { |
468 | get { | 524 | get { |
469 | return tn3270_get_length(hSession); | 525 | return tn3270_get_length(hSession); |
@@ -476,6 +532,14 @@ namespace pw3270 { | @@ -476,6 +532,14 @@ namespace pw3270 { | ||
476 | } | 532 | } |
477 | } | 533 | } |
478 | 534 | ||
535 | + /// <summary> | ||
536 | + /// 3270 host URL | ||
537 | + /// </summary> | ||
538 | + /// | ||
539 | + /// <returns> | ||
540 | + /// 3270 host URL | ||
541 | + /// </returns> | ||
542 | + /// | ||
479 | public string Url { | 543 | public string Url { |
480 | set { | 544 | set { |
481 | tn3270_set_url(hSession,value); | 545 | tn3270_set_url(hSession,value); |
@@ -487,6 +551,14 @@ namespace pw3270 { | @@ -487,6 +551,14 @@ namespace pw3270 { | ||
487 | } | 551 | } |
488 | } | 552 | } |
489 | 553 | ||
554 | + /// <summary> | ||
555 | + /// Last lib3270 error message | ||
556 | + /// </summary> | ||
557 | + /// | ||
558 | + /// <returns> | ||
559 | + /// Last lib3270 error message | ||
560 | + /// </returns> | ||
561 | + /// | ||
490 | public string Error { | 562 | public string Error { |
491 | set { | 563 | set { |
492 | tn3270_set_error_message(hSession,value); | 564 | tn3270_set_error_message(hSession,value); |