public class TextRange extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Windows.Documents.TextRange
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: PresentationFramework, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
static java.lang.String |
assemblyShortName
Assembly name: PresentationFramework
|
static java.lang.String |
className
Qualified class name: System.Windows.Documents.TextRange
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TextRange() |
TextRange(java.lang.Object instance)
Internal constructor.
|
TextRange(TextPointer position1,
TextPointer position2)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChanged(EventHandler handler)
Invokes the .NET member addChanged.
|
void |
ApplyPropertyValue(DependencyProperty formattingProperty,
NetObject value)
Invokes the .NET member ApplyPropertyValue.
|
boolean |
CanLoad(java.lang.String dataFormat)
Invokes the .NET member CanLoad.
|
boolean |
CanSave(java.lang.String dataFormat)
Invokes the .NET member CanSave.
|
static TextRange |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TextRange, a cast assert is made to check if types are compatible. |
void |
ClearAllProperties()
Invokes the .NET member ClearAllProperties.
|
boolean |
Contains(TextPointer textPointer)
Invokes the .NET member Contains.
|
TextPointer |
getEnd()
Gets the value of the .NET property End.
|
boolean |
getIsEmpty()
Gets the value of the .NET property IsEmpty.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
NetObject |
GetPropertyValue(DependencyProperty formattingProperty)
Invokes the .NET member GetPropertyValue.
|
TextPointer |
getStart()
Gets the value of the .NET property Start.
|
java.lang.String |
getText()
Gets the value of the .NET property Text.
|
void |
Load(Stream stream,
java.lang.String dataFormat)
Invokes the .NET member Load.
|
void |
removeChanged(EventHandler handler)
Invokes the .NET member removeChanged.
|
void |
Save(Stream stream,
java.lang.String dataFormat)
Invokes the .NET member Save.
|
void |
Save(Stream stream,
java.lang.String dataFormat,
boolean preserveTextElements)
Invokes the .NET member Save.
|
void |
Select(TextPointer position1,
TextPointer position2)
Invokes the .NET member Select.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setText(java.lang.String Text)
Sets the value of the .NET property Text.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TextRange()
throws java.lang.Throwable
java.lang.Throwablepublic TextRange(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic TextRange(TextPointer position1, TextPointer position2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, InvalidEnumArgumentException
position1 - the argument of type TextPointerposition2 - the argument of type TextPointerjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itpublic void addChanged(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void ApplyPropertyValue(DependencyProperty formattingProperty, NetObject value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, ArgumentOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, SecurityException, InvalidOperationException, ArrayTypeMismatchException, IOException, UnauthorizedAccessException, NotSupportedException, KeyNotFoundException, InvalidEnumArgumentException
formattingProperty - the argument of type DependencyPropertyvalue - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itSecurityException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIOException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itNotSupportedException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itpublic boolean CanLoad(java.lang.String dataFormat)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentException,
ObjectDisposedException,
PlatformNotSupportedException,
SecurityException,
InvalidOperationException,
IOException,
UnauthorizedAccessException,
IndexOutOfRangeException,
ArgumentNullException,
InvalidEnumArgumentException,
NotSupportedException
dataFormat - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itSecurityException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIOException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic boolean CanSave(java.lang.String dataFormat)
throws java.lang.Throwable
dataFormat - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static TextRange cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TextRange, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTextRange instancejava.lang.Throwable - in case of error during cast operationpublic void ClearAllProperties()
throws java.lang.Throwable,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
ObjectDisposedException,
IndexOutOfRangeException,
MissingMethodException,
TargetInvocationException,
OutOfMemoryException,
SecurityException,
InvalidOperationException,
ArrayTypeMismatchException,
IOException,
UnauthorizedAccessException,
InvalidEnumArgumentException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itSecurityException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIOException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itpublic boolean Contains(TextPointer textPointer) throws java.lang.Throwable
textPointer - the argument of type TextPointerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic TextPointer getEnd() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsEmpty()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic NetObject GetPropertyValue(DependencyProperty formattingProperty) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
formattingProperty - the argument of type DependencyPropertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic TextPointer getStart() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getText()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Load(Stream stream, java.lang.String dataFormat) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, SecurityException, IOException, UnauthorizedAccessException, InvalidEnumArgumentException, OutOfMemoryException, XamlException, NotImplementedException, XamlParseException, FileFormatException, InvalidDataException, XmlException, KeyNotFoundException
stream - the argument of type StreamdataFormat - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itSecurityException - if the .NET member raises itIOException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itXamlException - if the .NET member raises itNotImplementedException - if the .NET member raises itXamlParseException - if the .NET member raises itFileFormatException - if the .NET member raises itInvalidDataException - if the .NET member raises itXmlException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itpublic void removeChanged(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Save(Stream stream, java.lang.String dataFormat) throws java.lang.Throwable
stream - the argument of type StreamdataFormat - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Save(Stream stream, java.lang.String dataFormat, boolean preserveTextElements) throws java.lang.Throwable
stream - the argument of type StreamdataFormat - the argument of type java.lang.StringpreserveTextElements - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Select(TextPointer position1, TextPointer position2) throws java.lang.Throwable
position1 - the argument of type TextPointerposition2 - the argument of type TextPointerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setText(java.lang.String Text)
throws java.lang.Throwable
Text - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLR