(0) exportieren Drucken
Alle erweitern
BoldRun Method
Calculate Method
ClearFormatting Method
Collapse Method
ConvertToTable Method
ConvertToTableOld Method
Copy Method
CopyAsPicture Method
CopyFormat Method
CreateAutoTextEntry Method
CreateTextbox Method
Cut Method
Delete Method
DetectLanguage Method
EndKey Method
EndOf Method
EscapeKey Method
Expand Method
Extend Method
GoTo Method
GoToEditableRange Method
GoToNext Method
GoToPrevious Method
HomeKey Method
InRange Method
InsertAfter Method
InsertBefore Method
InsertBreak Method
InsertCaption Method
InsertCaptionXP Method
InsertCells Method
InsertColumns Method
InsertColumnsRight Method
InsertCrossReference Method
InsertCrossReference_2002 Method
InsertDateTime Method
InsertDateTimeOld Method
InsertFile Method
InsertFormula Method
InsertParagraph Method
InsertParagraphAfter Method
InsertParagraphBefore Method
InsertRows Method
InsertRowsAbove Method
InsertRowsBelow Method
InsertStyleSeparator Method
InsertSymbol Method
InsertXML Method
InStory Method
IsEqual Method
ItalicRun Method
LtrPara Method
LtrRun Method
Move Method
MoveDown Method
MoveEnd Method
MoveEndUntil Method
MoveEndWhile Method
MoveLeft Method
MoveRight Method
MoveStart Method
MoveStartUntil Method
MoveStartWhile Method
MoveUntil Method
MoveUp Method
MoveWhile Method
Next Method
NextField Method
NextRevision Method
NextSubdocument Method
Paste Method
PasteAndFormat Method
PasteAppendTable Method
PasteAsNestedTable Method
PasteExcelTable Method
PasteFormat Method
PasteSpecial Method
Previous Method
PreviousField Method
PreviousRevision Method
PreviousSubdocument Method
RtlPara Method
RtlRun Method
Select Method
SelectCell Method
SelectColumn Method
SelectCurrentAlignment Method
SelectCurrentColor Method
SelectCurrentFont Method
SelectCurrentIndent Method
SelectCurrentSpacing Method
SelectCurrentTabs Method
SelectRow Method
SetRange Method
Shrink Method
ShrinkDiscontiguousSelection Method
Sort Method
Sort2000 Method
SortAscending Method
SortDescending Method
SortOld Method
SplitTable Method
StartOf Method
ToggleCharacterCode Method
TypeBackspace Method
TypeParagraph Method
TypeText Method
WholeStory Method
Erweitern Minimieren
Dieser Artikel wurde noch nicht bewertet - Dieses Thema bewerten.

Selection.Collapse Method

Collapses a selection to the starting or ending position.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

'Usage
Dim Direction As Object
Dim selection1 As Selection
selection1.Collapse(Direction)
void Collapse(
	[In, Optional] ref object Direction
);
public void Collapse(
	/*in*/System.Object Direction
);
function Collapse(
	 Direction : Object
);

Parameters

Direction

Optional Object. The direction in which to collapse the selection.

Can be either of the following WdCollapseDirection constants: wdCollapseEnd or wdCollapseStart. The default value is wdCollapseStart.

If you use wdCollapseEnd to collapse a selection that refers to an entire paragraph, the selection is located after the ending paragraph mark (the beginning of the next paragraph). However, you can move the selection back one character by using the MoveEnd method after the selection is collapsed.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Anzeigen:
© 2014 Microsoft. Alle Rechte vorbehalten.