Commit 0944f629f0c120dad25580186e84834501d5abfa

Authored by Perry Werneck
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 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 190 public string Version {
183 191 get {
184 192 return GetVersion();
... ... @@ -440,30 +448,78 @@ namespace pw3270 {
440 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 459 public int GetWidth() {
444 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 471 public int Width {
448 472 get {
449 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 485 public int GetHeight() {
454 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 497 public int Height {
458 498 get {
459 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 511 public int GetLength() {
464 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 523 public int Length {
468 524 get {
469 525 return tn3270_get_length(hSession);
... ... @@ -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 543 public string Url {
480 544 set {
481 545 tn3270_set_url(hSession,value);
... ... @@ -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 562 public string Error {
491 563 set {
492 564 tn3270_set_error_message(hSession,value);
... ...