B2022-088: Find Doc Ro button not working in Word Sections

B2022-089: Updating RO Crashes
This commit is contained in:
Jake
2022-08-08 10:04:21 +00:00
parent b6d69fbd4c
commit f8269a7ac6
13 changed files with 271 additions and 125 deletions

View File

@@ -840,6 +840,25 @@ namespace LBWordLibrary
{
return new LBRange(InvokeMethod("GoTo", What, Which, Count, Missing.Value));
}
B2022-088: Find Doc Ro button not working in Word Sections
public bool LastWasUpper
{
get
{
int start = this.Start - 1;
while (start >= 0)
{
this.Start = start;
this.End = start + 1;
string previous = LBDocumentClass.GetRangeText(this);
if (Regex.IsMatch(previous, "[A-Z]")) return true;
if (Regex.IsMatch(previous, "[a-z]")) return false;
start = start - 1;
}
return false;
}
}
}
public partial class LBSelection : LBComObject
{