Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
Windows
UI
Text
ITextSelection
Interface ITextSelection
Hierarchy
ITextRange
ITextSelection
Index
Properties
character
characterFormat
endPosition
formattedText
gravity
length
link
options
paragraphFormat
startPosition
storyLength
text
type
Methods
canPaste
changeCase
collapse
copy
cut
delete_
endKey
endOf
expand
findText
getCharacterUtf32
getClone
getIndex
getPoint
getRect
getText
getTextViaStream
homeKey
inRange
inStory
insertImage
isEqual
matchSelection
move
moveDown
moveEnd
moveLeft
moveRight
moveStart
moveUp
paste
scrollIntoView
setIndex
setPoint
setRange
setText
setTextViaStream
startOf
typeText
Properties
public
character
:
string
public
characterFormat
:
ITextCharacterFormat
public
endPosition
:
number
public
formattedText
:
ITextRange
public
gravity
:
RangeGravity
public
length
:
number
public
link
:
string
public
options
:
SelectionOptions
public
paragraphFormat
:
ITextParagraphFormat
public
startPosition
:
number
public
storyLength
:
number
public
text
:
string
public
type
:
SelectionType
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
endKey
(
unit
:
TextRangeUnit
, extend
:
boolean
)
:
number
Parameters
unit:
TextRangeUnit
extend:
boolean
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
homeKey
(
unit
:
TextRangeUnit
, extend
:
boolean
)
:
number
Parameters
unit:
TextRangeUnit
extend:
boolean
Returns
number
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
moveDown
(
unit
:
TextRangeUnit
, count
:
number
, extend
:
boolean
)
:
number
Parameters
unit:
TextRangeUnit
count:
number
extend:
boolean
Returns
number
public
moveEnd
(
unit
:
TextRangeUnit
, count
:
number
)
:
number
Parameters
unit:
TextRangeUnit
count:
number
Returns
number
public
moveLeft
(
unit
:
TextRangeUnit
, count
:
number
, extend
:
boolean
)
:
number
Parameters
unit:
TextRangeUnit
count:
number
extend:
boolean
Returns
number
public
moveRight
(
unit
:
TextRangeUnit
, count
:
number
, extend
:
boolean
)
:
number
Parameters
unit:
TextRangeUnit
count:
number
extend:
boolean
Returns
number
public
moveStart
(
unit
:
TextRangeUnit
, count
:
number
)
:
number
Parameters
unit:
TextRangeUnit
count:
number
Returns
number
public
moveUp
(
unit
:
TextRangeUnit
, count
:
number
, extend
:
boolean
)
:
number
Parameters
unit:
TextRangeUnit
count:
number
extend:
boolean
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
public
typeText
(
value
:
string
)
Parameters
value:
string
Globals
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
ITextSelection
character
characterFormat
endPosition
formattedText
gravity
length
link
options
paragraphFormat
startPosition
storyLength
text
type
canPaste
changeCase
collapse
copy
cut
delete_
endKey
endOf
expand
findText
getCharacterUtf32
getClone
getIndex
getPoint
getRect
getText
getTextViaStream
homeKey
inRange
inStory
insertImage
isEqual
matchSelection
move
moveDown
moveEnd
moveLeft
moveRight
moveStart
moveUp
paste
scrollIntoView
setIndex
setPoint
setRange
setText
setTextViaStream
startOf
typeText
FontWeights
TextConstants