最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

expand Method

Internet Development Index

Expands the range so that partial units are completely contained.

Syntax

bSuccess = TextRange.expand(sUnit)

Parameters

sUnit Required. String爐hat specifies the units to move in the range, using one one of the following values:
characterExpands a character.
wordExpands a word. A word is a collection of characters terminated by a space or another white-space character, such as a tab.
sentenceExpands a sentence. A sentence is a collection of words terminated by an ending punctuation character, such as a period.
texteditExpands to enclose the entire range.

Return Value

Boolean that returns one of the following values:

trueThe range was successfully expanded.
falseThe range was not expanded.

Remarks

This feature might not be available on non-Microsoft® Win32® platforms.

Example

This example creates a range from the current selection and uses the expand method to ensure that any word partially enclosed in the range becomes entirely enclosed in the range.

var rng = document.selection.createRange();
rng.expand("word");

Standards Information

There is no public standard that applies to this method.

Applies To

TextRange

See Also

collapse
郑州市| 克什克腾旗| 宁安市| 定边县| 景洪市| 肃北| 彝良县| 花莲县| 油尖旺区| 离岛区| 浦东新区| 乌拉特后旗| 弥渡县| 文登市| 宿迁市| 楚雄市| 彭泽县| 留坝县| 常熟市| 仁寿县| 南平市| 永登县| 讷河市| 西充县| 喀什市| 安多县| 巩留县| 蒙山县| 北碚区| 哈尔滨市| 长寿区| 八宿县| 祥云县| 教育| 乐山市| 阿尔山市| 惠州市| 栖霞市| 张北县| 枝江市| 扬州市|