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

@@ -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.