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=4.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.StringassemblyFullNameFully assembly qualified name: PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: PresentationFrameworkstatic java.lang.StringclassNameQualified class name: System.Windows.Documents.TextRangestatic JCTypeclassTypeThe 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 voidaddChanged(EventHandler handler)voidApplyPropertyValue(DependencyProperty formattingProperty, NetObject value)booleanCanLoad(java.lang.String dataFormat)booleanCanSave(java.lang.String dataFormat)static TextRangecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoTextRange, a cast assert is made to check if types are compatible.voidClearAllProperties()booleanContains(TextPointer textPointer)TextPointergetEnd()booleangetIsEmpty()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeNetObjectGetPropertyValue(DependencyProperty formattingProperty)TextPointergetStart()java.lang.StringgetText()voidLoad(Stream stream, java.lang.String dataFormat)voidremoveChanged(EventHandler handler)voidSave(Stream stream, java.lang.String dataFormat)voidSave(Stream stream, java.lang.String dataFormat, boolean preserveTextElements)voidSelect(TextPointer position1, TextPointer position2)voidsetJCOInstance(JCObject instance)voidsetText(java.lang.String Text)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: PresentationFramework, Version=4.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.ThrowableInternal 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, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, InvalidEnumArgumentException, ArgumentOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static TextRange cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoTextRange, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
TextRangeinstance- 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, ArgumentNullException, NotSupportedException, SecurityException, ObjectDisposedException, UnauthorizedAccessException, IOException, InvalidOperationException, MissingManifestResourceException, InvalidEnumArgumentException
-
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, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
ApplyPropertyValue
public void ApplyPropertyValue(DependencyProperty formattingProperty, NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotSupportedException, MissingMethodException, SecurityException, ArgumentOutOfRangeException, ObjectDisposedException, IndexOutOfRangeException, UnauthorizedAccessException, IOException, InvalidOperationException, MissingManifestResourceException, NotImplementedException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotSupportedExceptionMissingMethodExceptionSecurityExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIndexOutOfRangeExceptionUnauthorizedAccessExceptionIOExceptionInvalidOperationExceptionMissingManifestResourceExceptionNotImplementedExceptionInvalidEnumArgumentException
-
ClearAllProperties
public void ClearAllProperties() throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, MissingMethodException, TargetInvocationException, SecurityException, ObjectDisposedException, IndexOutOfRangeException, UnauthorizedAccessException, IOException, MissingManifestResourceException, NotImplementedException, InvalidEnumArgumentException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionSecurityExceptionObjectDisposedExceptionIndexOutOfRangeExceptionUnauthorizedAccessExceptionIOExceptionMissingManifestResourceExceptionNotImplementedExceptionInvalidEnumArgumentException
-
Load
public void Load(Stream stream, java.lang.String dataFormat) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, MissingManifestResourceException, InvalidEnumArgumentException, OutOfMemoryException, NotSupportedException, FileFormatException, XmlException, ObjectDisposedException, KeyNotFoundException, XamlParseException, UriFormatException, NullReferenceException, AbandonedMutexException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionInvalidOperationExceptionMissingManifestResourceExceptionInvalidEnumArgumentExceptionOutOfMemoryExceptionNotSupportedExceptionFileFormatExceptionXmlExceptionObjectDisposedExceptionKeyNotFoundExceptionXamlParseExceptionUriFormatExceptionNullReferenceExceptionAbandonedMutexException
-
Save
public void Save(Stream stream, java.lang.String dataFormat) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Save
public void Save(Stream stream, java.lang.String dataFormat, boolean preserveTextElements) 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
-
-