Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
Windows
UI
Text
ITextRange
Interface ITextRange
Hierarchy
ITextRange
ITextSelection
Index
Properties
character
characterFormat
endPosition
formattedText
gravity
length
link
paragraphFormat
startPosition
storyLength
text
Methods
canPaste
changeCase
collapse
copy
cut
delete_
endOf
expand
findText
getCharacterUtf32
getClone
getIndex
getPoint
getRect
getText
getTextViaStream
inRange
inStory
insertImage
isEqual
matchSelection
move
moveEnd
moveStart
paste
scrollIntoView
setIndex
setPoint
setRange
setText
setTextViaStream
startOf
Properties
public
character
:
string
public
characterFormat
:
ITextCharacterFormat
public
endPosition
:
number
public
formattedText
:
ITextRange
public
gravity
:
RangeGravity
public
length
:
number
public
link
:
string
public
paragraphFormat
:
ITextParagraphFormat
public
startPosition
:
number
public
storyLength
:
number
public
text
:
string
Methods
public
canPaste
(
format
:
number
)
:
boolean
Parameters
format:
number
Returns
boolean
public
changeCase
(
value
:
LetterCase
)
Parameters
value:
LetterCase
public
collapse
(
value
:
boolean
)
Parameters
value:
boolean
public
copy
(
)
public
cut
(
)
public
delete_
(
unit
:
TextRangeUnit
, count
:
number
)
:
number
Parameters
unit:
TextRangeUnit
count:
number
Returns
number
public
endOf
(
unit
:
TextRangeUnit
, extend
:
boolean
)
:
number
Parameters
unit:
TextRangeUnit
extend:
boolean
Returns
number
public
expand
(
unit
:
TextRangeUnit
)
:
number
Parameters
unit:
TextRangeUnit
Returns
number
public
findText
(
value
:
string
, scanLength
:
number
, options
:
FindOptions
)
:
number
Parameters
value:
string
scanLength:
number
options:
FindOptions
Returns
number
public
getCharacterUtf32
(
offset
:
number
)
:
number
Parameters
offset:
number
Returns
number
public
getClone
(
)
:
ITextRange
Returns
ITextRange
public
getIndex
(
unit
:
TextRangeUnit
)
:
number
Parameters
unit:
TextRangeUnit
Returns
number
public
getPoint
(
horizontalAlign
:
HorizontalCharacterAlignment
, verticalAlign
:
VerticalCharacterAlignment
, options
:
PointOptions
)
:
Point
Parameters
horizontalAlign:
HorizontalCharacterAlignment
verticalAlign:
VerticalCharacterAlignment
options:
PointOptions
Returns
Point
public
getRect
(
options
:
PointOptions
)
:
{ rect: Windows.Foundation.Rect; hit: number; }
Parameters
options:
PointOptions
Returns
{ rect: Windows.Foundation.Rect; hit: number; }
public
getText
(
options
:
TextGetOptions
)
:
string
Parameters
options:
TextGetOptions
Returns
string
public
getTextViaStream
(
options
:
TextGetOptions
, value
:
IRandomAccessStream
)
Parameters
options:
TextGetOptions
value:
IRandomAccessStream
public
inRange
(
range
:
ITextRange
)
:
boolean
Parameters
range:
ITextRange
Returns
boolean
public
inStory
(
range
:
ITextRange
)
:
boolean
Parameters
range:
ITextRange
Returns
boolean
public
insertImage
(
width
:
number
, height
:
number
, ascent
:
number
, verticalAlign
:
VerticalCharacterAlignment
, alternateText
:
string
, value
:
IRandomAccessStream
)
Parameters
width:
number
height:
number
ascent:
number
verticalAlign:
VerticalCharacterAlignment
alternateText:
string
value:
IRandomAccessStream
public
isEqual
(
range
:
ITextRange
)
:
boolean
Parameters
range:
ITextRange
Returns
boolean
public
matchSelection
(
)
public
move
(
unit
:
TextRangeUnit
, count
:
number
)
:
number
Parameters
unit:
TextRangeUnit
count:
number
Returns
number
public
moveEnd
(
unit
:
TextRangeUnit
, count
:
number
)
:
number
Parameters
unit:
TextRangeUnit
count:
number
Returns
number
public
moveStart
(
unit
:
TextRangeUnit
, count
:
number
)
:
number
Parameters
unit:
TextRangeUnit
count:
number
Returns
number
public
paste
(
format
:
number
)
Parameters
format:
number
public
scrollIntoView
(
value
:
PointOptions
)
Parameters
value:
PointOptions
public
setIndex
(
unit
:
TextRangeUnit
, index
:
number
, extend
:
boolean
)
Parameters
unit:
TextRangeUnit
index:
number
extend:
boolean
public
setPoint
(
point
:
Point
, options
:
PointOptions
, extend
:
boolean
)
Parameters
point:
Point
options:
PointOptions
extend:
boolean
public
setRange
(
startPosition
:
number
, endPosition
:
number
)
Parameters
startPosition:
number
endPosition:
number
public
setText
(
options
:
TextSetOptions
, value
:
string
)
Parameters
options:
TextSetOptions
value:
string
public
setTextViaStream
(
options
:
TextSetOptions
, value
:
IRandomAccessStream
)
Parameters
options:
TextSetOptions
value:
IRandomAccessStream
public
startOf
(
unit
:
TextRangeUnit
, extend
:
boolean
)
:
number
Parameters
unit:
TextRangeUnit
extend:
boolean
Returns
number
Globals
Microsoft
Microsoft.Live
WinJS
WinJS.Application
WinJS.Binding
WinJS.Class
WinJS.Namespace
WinJS.Navigation
WinJS.Resources
WinJS.UI
WinJS.UI.Animation
WinJS.UI.Fragments
WinJS.UI.Pages
WinJS.UI.TrackTabBehavior
WinJS.Utilities
WinJS.Utilities.Scheduler
Windows
Windows.ApplicationModel
Windows.ApplicationModel.Activation
Windows.ApplicationModel.Background
Windows.ApplicationModel.Contacts
Windows.ApplicationModel.Contacts.Provider
Windows.ApplicationModel.Core
Windows.ApplicationModel.DataTransfer
Windows.ApplicationModel.DataTransfer.ShareTarget
Windows.ApplicationModel.Resources
Windows.ApplicationModel.Resources.Core
Windows.ApplicationModel.Resources.Management
Windows.ApplicationModel.Search
Windows.ApplicationModel.Store
Windows.Data
Windows.Data.Html
Windows.Data.Json
Windows.Data.Xml
Windows.Data.Xml.Dom
Windows.Data.Xml.Xsl
Windows.Devices
Windows.Devices.Enumeration
Windows.Devices.Enumeration.Pnp
Windows.Devices.Geolocation
Windows.Devices.Input
Windows.Devices.Portable
Windows.Devices.Printers
Windows.Devices.Printers.Extensions
Windows.Devices.Sensors
Windows.Devices.Sms
Windows.Foundation
Windows.Foundation.Collections
Windows.Foundation.Diagnostics
Windows.Foundation.Metadata
Windows.Globalization
Windows.Globalization.Collation
Windows.Globalization.DateTimeFormatting
Windows.Globalization.Fonts
Windows.Globalization.NumberFormatting
Windows.Graphics
Windows.Graphics.Display
Windows.Graphics.Imaging
Windows.Graphics.Printing
Windows.Graphics.Printing.OptionDetails
Windows.Management
Windows.Management.Core
Windows.Management.Deployment
Windows.Media
Windows.Media.Capture
Windows.Media.Devices
Windows.Media.MediaProperties
Windows.Media.PlayTo
Windows.Media.Playlists
Windows.Media.Protection
Windows.Media.Transcoding
Windows.Networking
Windows.Networking.BackgroundTransfer
Windows.Networking.Connectivity
Windows.Networking.NetworkOperators
Windows.Networking.Proximity
Windows.Networking.PushNotifications
Windows.Networking.Sockets
Windows.Security
Windows.Security.Authentication
Windows.Security.Authentication.OnlineId
Windows.Security.Authentication.Web
Windows.Security.Credentials
Windows.Security.Credentials.UI
Windows.Security.Cryptography
Windows.Security.Cryptography.Certificates
Windows.Security.Cryptography.Core
Windows.Security.Cryptography.DataProtection
Windows.Security.ExchangeActiveSyncProvisioning
Windows.Storage
Windows.Storage.AccessCache
Windows.Storage.BulkAccess
Windows.Storage.Compression
Windows.Storage.FileProperties
Windows.Storage.Pickers
Windows.Storage.Pickers.Provider
Windows.Storage.Provider
Windows.Storage.Search
Windows.Storage.Streams
Windows.System
Windows.System.Display
Windows.System.Profile
Windows.System.RemoteDesktop
Windows.System.Threading
Windows.System.Threading.Core
Windows.System.UserProfile
Windows.UI
Windows.UI.ApplicationSettings
Windows.UI.Core
Windows.UI.Core.AnimationMetrics
Windows.UI.Input
Windows.UI.Input.Inking
Windows.UI.Notifications
Windows.UI.Popups
Windows.UI.StartScreen
Windows.UI.Text
Windows.UI.ViewManagement
Windows.UI.WebUI
Windows.Web
Windows.Web.AtomPub
Windows.Web.Syndication
CaretType
FindOptions
FontStretch
FontStyle
FormatEffect
HorizontalCharacterAlignment
LetterCase
LineSpacingRule
LinkType
MarkerAlignment
MarkerStyle
MarkerType
ParagraphAlignment
ParagraphStyle
PointOptions
RangeGravity
SelectionOptions
SelectionType
TabAlignment
TabLeader
TextGetOptions
TextRangeUnit
TextScript
TextSetOptions
UnderlineType
VerticalCharacterAlignment
FontWeight
IFontWeights
IFontWeightsStatics
ITextCharacterFormat
ITextConstantsStatics
ITextDocument
ITextParagraphFormat
ITextRange
character
characterFormat
endPosition
formattedText
gravity
length
link
paragraphFormat
startPosition
storyLength
text
canPaste
changeCase
collapse
copy
cut
delete_
endOf
expand
findText
getCharacterUtf32
getClone
getIndex
getPoint
getRect
getText
getTextViaStream
inRange
inStory
insertImage
isEqual
matchSelection
move
moveEnd
moveStart
paste
scrollIntoView
setIndex
setPoint
setRange
setText
setTextViaStream
startOf
ITextSelection
FontWeights
TextConstants