B2022-088: Find Doc Ro button not working in Word Sections
B2022-089: Updating RO Crashes
This commit is contained in:
@@ -492,6 +492,48 @@ namespace LBWordLibrary
|
||||
public partial class LBRange : LBComObject
|
||||
{
|
||||
public LBRange() { }
|
||||
|
||||
// B2022-088: Find Doc Ro button not working in Word Sections
|
||||
public LBFind Find
|
||||
{
|
||||
get { return new LBFind(GetProperty("Find")); }
|
||||
}
|
||||
|
||||
public int MoveStart()
|
||||
{
|
||||
return InvokeMethod("MoveStart", Missing.Value, Missing.Value) as int? ?? 0;
|
||||
}
|
||||
|
||||
public int MoveStart(object Unit, object Count)
|
||||
{
|
||||
return InvokeMethod("MoveStart", Unit, Count) as int? ?? 0;
|
||||
}
|
||||
|
||||
public int MoveEnd()
|
||||
{
|
||||
return InvokeMethod("MoveEnd", Missing.Value, Missing.Value) as int? ?? 0;
|
||||
}
|
||||
|
||||
public int MoveEnd(object Unit, object Count)
|
||||
{
|
||||
return InvokeMethod("MoveEnd", Unit, Count) as int? ?? 0;
|
||||
}
|
||||
|
||||
public void InsertSymbol(int CharacterNumber)
|
||||
{
|
||||
InvokeMethod("InsertSymbol", CharacterNumber, Missing.Value, Missing.Value, Missing.Value);
|
||||
}
|
||||
|
||||
public void InsertSymbol(int CharacterNumber, object Font, object Unicode, object Bias)
|
||||
{
|
||||
InvokeMethod("InsertSymbol", CharacterNumber, Font, Unicode, Bias);
|
||||
}
|
||||
|
||||
public void TypeText(string Text)
|
||||
{
|
||||
InvokeMethod("TypeText", Text);
|
||||
}
|
||||
|
||||
public LBRange(Object item) : base(item) { }
|
||||
// B2018-028 Word 2016 has a different value for the Vertical Position Relative to the Text Boundary than older version of Word.
|
||||
// We now need to calculated the last row of text in the PROMS attachment differently.
|
||||
|
@@ -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