Package system.windows.documents
Class TextRange
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.documents.TextRange
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
TextSelection
public class TextRange extends NetObject
The base .NET class managing System.Windows.Documents.TextRange, PresentationFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Documents.TextRange
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.TextRangestatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description TextRange()
TextRange(java.lang.Object instance)
Internal constructor.TextRange(TextPointer position1, TextPointer position2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChanged(EventHandler handler)
void
ApplyPropertyValue(DependencyProperty formattingProperty, NetObject value)
boolean
CanLoad(java.lang.String dataFormat)
boolean
CanSave(java.lang.String dataFormat)
static TextRange
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoTextRange
, a cast assert is made to check if types are compatible.void
ClearAllProperties()
boolean
Contains(TextPointer textPointer)
TextPointer
getEnd()
boolean
getIsEmpty()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeNetObject
GetPropertyValue(DependencyProperty formattingProperty)
TextPointer
getStart()
java.lang.String
getText()
void
Load(Stream stream, java.lang.String dataFormat)
void
removeChanged(EventHandler handler)
void
Save(Stream stream, java.lang.String dataFormat)
void
Save(Stream stream, java.lang.String dataFormat, boolean preserveTextElements)
void
Select(TextPointer position1, TextPointer position2)
void
setJCOInstance(JCObject instance)
void
setText(java.lang.String Text)
-
-
-
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.TextRange- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TextRange
public TextRange(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
TextRange
public TextRange() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TextRange
public TextRange(TextPointer position1, TextPointer position2) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidEnumArgumentException, InvalidOperationException
-
-
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 classNetObject
- 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 classNetObject
- 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 classNetObject
- 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 classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static TextRange cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoTextRange
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
TextRange
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
CanLoad
public boolean CanLoad(java.lang.String dataFormat) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, SecurityException, PlatformNotSupportedException, IOException, UnauthorizedAccessException, IndexOutOfRangeException, InvalidOperationException, ArgumentNullException, InvalidEnumArgumentException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
ObjectDisposedException
SecurityException
PlatformNotSupportedException
IOException
UnauthorizedAccessException
IndexOutOfRangeException
InvalidOperationException
ArgumentNullException
InvalidEnumArgumentException
NotSupportedException
-
CanSave
public boolean CanSave(java.lang.String dataFormat) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Contains
public boolean Contains(TextPointer textPointer) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetPropertyValue
public NetObject GetPropertyValue(DependencyProperty formattingProperty) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
-
ApplyPropertyValue
public void ApplyPropertyValue(DependencyProperty formattingProperty, NetObject value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, ArgumentOutOfRangeException, OutOfMemoryException, SecurityException, ArrayTypeMismatchException, PlatformNotSupportedException, IOException, UnauthorizedAccessException, InvalidOperationException, NotSupportedException, KeyNotFoundException, InvalidEnumArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
IndexOutOfRangeException
ArgumentOutOfRangeException
OutOfMemoryException
SecurityException
ArrayTypeMismatchException
PlatformNotSupportedException
IOException
UnauthorizedAccessException
InvalidOperationException
NotSupportedException
KeyNotFoundException
InvalidEnumArgumentException
-
ClearAllProperties
public void ClearAllProperties() throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, ObjectDisposedException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException, OutOfMemoryException, SecurityException, ArrayTypeMismatchException, IOException, UnauthorizedAccessException, InvalidOperationException, InvalidEnumArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
PlatformNotSupportedException
ArgumentException
ArgumentOutOfRangeException
ObjectDisposedException
IndexOutOfRangeException
MissingMethodException
TargetInvocationException
OutOfMemoryException
SecurityException
ArrayTypeMismatchException
IOException
UnauthorizedAccessException
InvalidOperationException
InvalidEnumArgumentException
-
Load
public void Load(Stream stream, java.lang.String dataFormat) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, SecurityException, IOException, UnauthorizedAccessException, InvalidOperationException, InvalidEnumArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArrayTypeMismatchException, OutOfMemoryException, XamlException, NotImplementedException, XamlParseException, FileFormatException, InvalidDataException, FormatException, XmlException, KeyNotFoundException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ObjectDisposedException
SecurityException
IOException
UnauthorizedAccessException
InvalidOperationException
InvalidEnumArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
ArrayTypeMismatchException
OutOfMemoryException
XamlException
NotImplementedException
XamlParseException
FileFormatException
InvalidDataException
FormatException
XmlException
KeyNotFoundException
-
Save
public void Save(Stream stream, java.lang.String dataFormat, boolean preserveTextElements) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Save
public void Save(Stream stream, java.lang.String dataFormat) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Select
public void Select(TextPointer position1, TextPointer position2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsEmpty
public boolean getIsEmpty() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getText
public java.lang.String getText() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setText
public void setText(java.lang.String Text) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getEnd
public TextPointer getEnd() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getStart
public TextPointer getStart() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addChanged
public void addChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeChanged
public void removeChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-