B2022-088: Find Doc Ro button not working in Word Sections
B2022-089: Updating RO Crashes
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user