Package system.windows.documents
Class TextPointer
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.documents.ContentPosition
-
- system.windows.documents.TextPointer
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class TextPointer extends ContentPosition
The base .NET class managing System.Windows.Documents.TextPointer, PresentationFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Documents.TextPointer
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: PresentationFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.String
assemblyShortName
Assembly name: PresentationFrameworkstatic java.lang.String
className
Qualified class name: System.Windows.Documents.TextPointerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description TextPointer()
TextPointer(java.lang.Object instance)
Internal constructor.
-
Method Summary
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: PresentationFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: PresentationFramework- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Documents.TextPointer- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classContentPosition
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classContentPosition
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classContentPosition
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classContentPosition
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classContentPosition
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classContentPosition
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static TextPointer cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoTextPointer
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
TextPointer
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
IsInSameDocument
public boolean IsInSameDocument(TextPointer textPosition) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
CompareTo
public int CompareTo(TextPointer position) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, SecurityException, IOException, UnauthorizedAccessException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
SecurityException
IOException
UnauthorizedAccessException
-
DeleteTextInRun
public int DeleteTextInRun(int count) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, SecurityException, ArgumentOutOfRangeException, PlatformNotSupportedException, IOException, UnauthorizedAccessException, IndexOutOfRangeException, InvalidOperationException, FormatException, InvalidEnumArgumentException, ArgumentNullException, RankException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentException
ObjectDisposedException
SecurityException
ArgumentOutOfRangeException
PlatformNotSupportedException
IOException
UnauthorizedAccessException
IndexOutOfRangeException
InvalidOperationException
FormatException
InvalidEnumArgumentException
ArgumentNullException
RankException
ArrayTypeMismatchException
-
GetOffsetToPosition
public int GetOffsetToPosition(TextPointer position) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, SecurityException, IOException, UnauthorizedAccessException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
SecurityException
IOException
UnauthorizedAccessException
-
GetTextInRun
public int GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, FormatException, InvalidEnumArgumentException, SecurityException, IOException, UnauthorizedAccessException, RankException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
ArgumentOutOfRangeException
NotSupportedException
FormatException
InvalidEnumArgumentException
SecurityException
IOException
UnauthorizedAccessException
RankException
ArrayTypeMismatchException
InvalidCastException
-
GetTextInRun
public int GetTextInRun(LogicalDirection dupParam0, JCORefOut dupParam1, int dupParam2, int dupParam3) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, FormatException, InvalidEnumArgumentException, SecurityException, IOException, UnauthorizedAccessException, RankException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
ArgumentOutOfRangeException
NotSupportedException
FormatException
InvalidEnumArgumentException
SecurityException
IOException
UnauthorizedAccessException
RankException
ArrayTypeMismatchException
InvalidCastException
-
GetTextRunLength
public int GetTextRunLength(LogicalDirection direction) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, FormatException, InvalidEnumArgumentException, SecurityException, IOException, UnauthorizedAccessException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
ArgumentOutOfRangeException
NotSupportedException
FormatException
InvalidEnumArgumentException
SecurityException
IOException
UnauthorizedAccessException
-
GetTextInRun
public java.lang.String GetTextInRun(LogicalDirection direction) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, FormatException, InvalidEnumArgumentException, OutOfMemoryException, SecurityException, ArrayTypeMismatchException, IOException, UnauthorizedAccessException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
ArgumentOutOfRangeException
NotSupportedException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
SecurityException
ArrayTypeMismatchException
IOException
UnauthorizedAccessException
-
GetAdjacentElement
public DependencyObject GetAdjacentElement(LogicalDirection direction) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, FormatException, InvalidEnumArgumentException, SecurityException, IOException, UnauthorizedAccessException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
ArgumentOutOfRangeException
NotSupportedException
FormatException
InvalidEnumArgumentException
SecurityException
IOException
UnauthorizedAccessException
-
GetInsertionPosition
public TextPointer GetInsertionPosition(LogicalDirection direction) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetLineStartPosition
public TextPointer GetLineStartPosition(int count, JCORefOut<java.util.concurrent.atomic.AtomicInteger> actualCount) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, SecurityException, IOException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
-
GetLineStartPosition
public TextPointer GetLineStartPosition(int count) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException
-
GetNextContextPosition
public TextPointer GetNextContextPosition(LogicalDirection direction) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetNextInsertionPosition
public TextPointer GetNextInsertionPosition(LogicalDirection direction) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetPositionAtOffset
public TextPointer GetPositionAtOffset(int offset, LogicalDirection direction) throws java.lang.Throwable, SecurityException, IOException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, RankException, ArrayTypeMismatchException, InvalidOperationException
-
GetPositionAtOffset
public TextPointer GetPositionAtOffset(int offset) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
-
InsertLineBreak
public TextPointer InsertLineBreak() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, SecurityException, ArgumentOutOfRangeException, PlatformNotSupportedException, IOException, UnauthorizedAccessException, IndexOutOfRangeException, InvalidOperationException, ArgumentNullException, FormatException, InvalidEnumArgumentException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
ObjectDisposedException
SecurityException
ArgumentOutOfRangeException
PlatformNotSupportedException
IOException
UnauthorizedAccessException
IndexOutOfRangeException
InvalidOperationException
ArgumentNullException
FormatException
InvalidEnumArgumentException
MissingMethodException
TargetInvocationException
-
InsertParagraphBreak
public TextPointer InsertParagraphBreak() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, SecurityException, ArgumentOutOfRangeException, PlatformNotSupportedException, IOException, UnauthorizedAccessException, IndexOutOfRangeException, InvalidOperationException, ArgumentNullException, FormatException, AmbiguousMatchException, InvalidEnumArgumentException
- Throws:
java.lang.Throwable
ArgumentException
ObjectDisposedException
SecurityException
ArgumentOutOfRangeException
PlatformNotSupportedException
IOException
UnauthorizedAccessException
IndexOutOfRangeException
InvalidOperationException
ArgumentNullException
FormatException
AmbiguousMatchException
InvalidEnumArgumentException
-
GetPointerContext
public TextPointerContext GetPointerContext(LogicalDirection direction) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, FormatException, InvalidEnumArgumentException, SecurityException, IOException, UnauthorizedAccessException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
ArgumentOutOfRangeException
NotSupportedException
FormatException
InvalidEnumArgumentException
SecurityException
IOException
UnauthorizedAccessException
-
GetCharacterRect
public Rect GetCharacterRect(LogicalDirection direction) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, FormatException, InvalidEnumArgumentException, SecurityException, IOException, UnauthorizedAccessException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
ArgumentOutOfRangeException
NotSupportedException
FormatException
InvalidEnumArgumentException
SecurityException
IOException
UnauthorizedAccessException
-
InsertTextInRun
public void InsertTextInRun(java.lang.String textData) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, SecurityException, IOException, UnauthorizedAccessException, IndexOutOfRangeException, InvalidEnumArgumentException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
SecurityException
IOException
UnauthorizedAccessException
IndexOutOfRangeException
InvalidEnumArgumentException
-
getHasValidLayout
public boolean getHasValidLayout() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsAtInsertionPosition
public boolean getIsAtInsertionPosition() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, SecurityException, ArgumentOutOfRangeException, PlatformNotSupportedException, IOException, UnauthorizedAccessException, IndexOutOfRangeException, InvalidOperationException
-
getIsAtLineStartPosition
public boolean getIsAtLineStartPosition() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, SecurityException, ArgumentOutOfRangeException, PlatformNotSupportedException, IOException, UnauthorizedAccessException, IndexOutOfRangeException, InvalidOperationException, FormatException, InvalidEnumArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ObjectDisposedException
SecurityException
ArgumentOutOfRangeException
PlatformNotSupportedException
IOException
UnauthorizedAccessException
IndexOutOfRangeException
InvalidOperationException
FormatException
InvalidEnumArgumentException
ArgumentNullException
-
getParent
public DependencyObject getParent() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, SecurityException, ArgumentOutOfRangeException, PlatformNotSupportedException, IOException, UnauthorizedAccessException, IndexOutOfRangeException, InvalidOperationException
-
getLogicalDirection
public LogicalDirection getLogicalDirection() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getParagraph
public Paragraph getParagraph() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, SecurityException, ArgumentOutOfRangeException, PlatformNotSupportedException, IOException, UnauthorizedAccessException, IndexOutOfRangeException, InvalidOperationException
-
getDocumentEnd
public TextPointer getDocumentEnd() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, SecurityException, IOException, UnauthorizedAccessException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
ObjectDisposedException
SecurityException
IOException
UnauthorizedAccessException
PlatformNotSupportedException
-
getDocumentStart
public TextPointer getDocumentStart() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, SecurityException, IOException, UnauthorizedAccessException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
ObjectDisposedException
SecurityException
IOException
UnauthorizedAccessException
PlatformNotSupportedException
-
-