FormControlCommandIds.CommandIds Enumeration

The CommandIds enumeration is used to send commands to the FormControl object.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath.FormControl (in microsoft.office.infopath.formcontrol.dll)

 Member nameDescription
AddWordToDictionaryAdds a word to the dictionary 
AlignTextCenterAligns selected text in the center 
AlignTextJustifyJustifies selected text 
AlignTextLeftAligns selected text on the left 
AlignTextRightAligns selected text on the right 
ClearAutoSpaceRemoves all auto spacing of selected text 
ClearBulletedListRemoves bullets from selected items that have been bulleted 
ClearFontFormattingClears all font formatting of selected text 
ClearNumberedListRemoves numbers from selected items that have been numbered 
CloseCloses the application 
CopyCopies selected items 
CorrectAllOfMisspelledWordCorrects all misspelled words 
CorrectMisspelledWordCorrects selected misspelled words 
CutCuts selected items 
DecreaseFontSizeBy2Decreases selected text font size by two points 
DecreaseIndentDecreases indents of selected lines 
DeleteMisspelledWordDeletes selected misspelled words 
DeleteSelectedColumnsDeletes selected columns 
DeleteSelectedRowsDeletes selected row 
DeleteSelectedTableDeletes selected tables 
DrawTableDraws a table 
EraseTableErases a table and retains table contents 
FindNextMisspelledWordFinds the next misspelled word 
FindReplaceFindNextFinds the next matching text 
FormatPainterApplyFormattingApplies formatting from the Format Painter 
FormatPainterApplyFormattingPersistentApplies formatting from the Format Painter in double-click mode (multiple-selection) 
FormatPainterCopyFormattingCopies formatting of selected items to the Format Painter 
FormatPainterCopyFormattingPersistentCopies formatting of selected items to the Format Painter in double-click mode (multiple-selection) 
GetCurrentMisspelledWordGets the current misspelled word 
GetDefaultFontColorGets the default font color 
GetDefaultHighlightColorGets the default highlight color 
GetFindReplaceOptionSearchDirectionGets the direction in which a find or replace operation will search 
GetFindReplaceStateGets the state of the find or replace operation 
GetFindStringGets the string that will be used in a find operation 
GetFontAvailableByIndexGets the available fonts by index 
GetFontsAvailableCountGets the count of available fonts 
GetFontSizeAvailableByIndexGets the available font sizes by index 
GetFontSizesAvailableCountGets a count of the available font sizes 
GetHyperlinkAddressGets the address of a hyperlink 
GetHyperlinkDisplayTextGets the display text of a hyperlink 
GetPictureAlternativeTextGets the alternative text (alt text) of a picture 
GetPictureHeightGets the height of a picture 
GetPictureTextWrappingGets the text wrapping value of a picture 
GetPictureWidthGets the width of a picture 
GetReplaceWithStringGets the string that will be used in a replace operation 
GetSelectedCellBottomPaddingGets the bottom cell padding of the selected cell 
GetSelectedCellLeftPaddingGets the left cell padding of the selected cell 
GetSelectedCellRightPaddingGets the right cell padding of the selected cell 
GetSelectedCellTopPaddingGets the top cell padding of the selected cell 
GetSelectedCellVerticalAlignmentGets the vertical cell alignment of the selected cell 
GetSelectedColumnWidthGets the column width of the selected cell 
GetSelectedRowHeightGets the row height of the selected row 
GetSelectedTextBackgroundColorGets the background color of the selected text 
GetSelectedTextFontGets the font of the selected text 
GetSelectedTextFontColorGets the font color of the selected text 
GetSelectedTextFontSizeGets the font size of the selected text 
GetSelectedTextHighlightColorGets the highlight color of the selected text 
GetSpellingSuggestionGets the spelling suggestion of the selected text 
GetSpellingSuggestionsCountGets a count of the spelling suggestions of the selected text 
GetSubmitButtonCaptionGets the caption of the submit button 
GetTableDirectionGets the direction of a table 
GetTableHorizontalAlignmentGets the horizontal alignment of a table 
GotoFirstErrorOnViewRepositions the focus to the first error in the current view 
GotoNextErrorOnViewRepositions the focus to the next error in the current view 
IgnoreAllOfMisspelledWordIgnores all misspelled words 
IgnoreMisspelledWordIgnores the current misspelled word 
IncreaseFontSizeBy2Increases the font size by two points 
IncreaseIndentIncreases the indentation of selected lines 
InsertBulletedListInserts a bulleted list on selected text using the default bullet 
InsertBulletedListEmptyCircleInserts a bulleted list on selected text using the empty circle bullet 
InsertBulletedListSolidCircleInserts a bulleted list on selected text using the solid circle bullet 
InsertBulletedListSolidSquareInserts a bulleted list on selected text using the solid square bullet 
InsertColumnLeftInserts a column to the left of the selected column 
InsertColumnRightInserts a column to the right of the selected column 
InsertHorizontalLineInserts a horizontal line 
InsertHyperlinkInserts a hyperlink 
InsertImageInserts an image 
InsertNumberedListInserts a numbered list on selected text using the default numbering 
InsertNumberedListAlphaLowercaseInserts a numbered list on selected text using the lowercase letters 
InsertNumberedListAlphaUppercaseInserts a numbered list on selected text using the uppercase letters 
InsertNumberedListDecimalInserts a numbered list on selected text using decimals 
InsertNumberedListRomanLowercaseInserts a numbered list on selected text using the lowercase Roman numerals 
InsertNumberedListRomanUppercaseInserts a numbered list on selected text using the uppercase Roman numeral 
InsertPictureFromFileInserts a picture from a file 
InsertRowAboveInserts a row above the selected row 
InsertRowBelowInserts a row below the selected row 
InsertTableInserts a table 
IsFormDirectionLeftToRightGets whether selected text is formatted left to right 
IsFormDirectionRightToLeftGets whether selected text is formatted right to left 
MergeCellsMerges selected cells 
PastePastes items from the clipboard 
RedoPerforms a redo operation 
RemoveHyperlinkRemoves a hyperlink 
ReplacePerforms a replace operation 
ReplaceAllPerforms a replace all operation 
SavePerforms a save operation 
SaveAsPerformas a save as operation 
SelectAllSelects all items in the view 
SelectCellSelects the current cell 
SelectColumnsSelects the current column 
SelectHyperlinkSelects the current hyperlink 
SelectNextColumnSelects the next column 
SelectNextRowSelects the next row 
SelectPreviousColumnSelects the previous column 
SelectPreviousRowSelects the previous row 
SelectRowsSelects all rows 
SelectTableSelects the table 
Set15LineSpacingSets paragraph spacing to 1.5 lines 
SetAutoSpaceBetweenAsianAndLatinTextSets the automatic spacing between Asian and Latin text 
SetAutoSpaceBetweenAsianTextAndNumbersSets the automatic spacing between Asian and Latin numbers 
SetDoubleLineSpacingSets line spacing to double 
SetFindReplaceOptionMatchCaseSets the option to match case on find or replace operations 
SetFindReplaceOptionSearchDirectionSets the search direction on find or replace operations 
SetFindReplaceOptionUseWildcardsSets the option to use wildcards on find or replace operations 
SetFindReplaceOptionWholeWordOnlySets the option to match entire words only on find or replace operations 
SetFindStringSets the string to use in a find operation 
SetFontFormattingBoldSets the font formatting of the selected text to bold 
SetFontFormattingHeading1Sets the font formatting of the selected text to Heading 1 
SetFontFormattingHeading2Sets the font formatting of the selected text to Heading 2 
SetFontFormattingHeading3Sets the font formatting of the selected text to Heading 3 
SetFontFormattingHeading4Sets the font formatting of the selected text to Heading 4 
SetFontFormattingHeading5Sets the font formatting of the selected text to Heading 5 
SetFontFormattingHeading6Sets the font formatting of the selected text to Heading 6 
SetFontFormattingItalicSets the font formatting of the selected text to italic 
SetFontFormattingNormalSets the font formatting of the selected text to normal 
SetFontFormattingStrikethroughSets the font formatting of the selected text to strikethrough 
SetFontFormattingSubscriptSets the font formatting of the selected text to subscript 
SetFontFormattingSuperscriptSets the font formatting of the selected text to superscript 
SetFontFormattingUnderlineSets the font formatting of the selected text to underline 
SetPictureAlternativeTextSets the alternative text (alt text) of a picture 
SetPictureHeightSets the height of a picture 
SetPictureInlineWithTextSets the text wrapping of a picture to be inline with surrounding text 
SetPictureToLeftOfTextSets the text wrapping of a picture to be left of surrounding text 
SetPictureToRightOfTextSets the text wrapping of a picture to be right of surrounding text 
SetPictureWidthSets the width of a picture 
SetReplaceWithStringSets the string used in a replace operation 
SetSelectedCellAlignmentBottomSets the selected cell(s) to bottom alignment 
SetSelectedCellAlignmentMiddleSets the selected cell(s) to middle alignment 
SetSelectedCellAlignmentTopSets the selected cell(s) to top alignment 
SetSelectedCellPaddingSets the padding of selected cell(s) 
SetSelectedColumnWidthSets the width of selected column(s) 
SetSelectedRowHeightSets the height of selected row(s) 
SetSelectedTextBackgroundColorSets the background color of selected text 
SetSelectedTextFontSets the font of selected text 
SetSelectedTextFontColorSets the font color of selected text 
SetSelectedTextFontSizeSets the font size of selected text 
SetSelectedTextHighlightColorSets the highlight color of selected text 
SetSingleLineSpacingSets line spacing to single 
SetSpellingOptionCheckAsYouTypeSets the option to check spelling automatically 
SetTableDirectionSets the table direction 
SetTableHorizontalAlignmentSets the table horizontal alignment 
SetTextDirectionDefaultSets the text direction to the default text direction 
SetTextDirectionLeftToRightSets the text direction to left to right 
SetTextDirectionRightToLeftSets the text direction to right to left 
ShowBordersShadingDialogDisplays the Borders and Shading dialog box 
ShowCurrentErrorMessageDisplays the current error message 
ShowDigitalSignaturesDialogDisplays the Digital Signatures dialog box 
ShowEditHyperlinkDialogDisplays the Edit Hyperlink dialog box 
ShowExportToExcelDialogDisplays the Export to Excel Wizard dialog box 
ShowExportToPDFXPSDialogDisplays the Publish as PDF or XPS dialog box 
ShowExportToWebDialogDisplays the Export to Web dialog box 
ShowFormatPictureDialogDisplays the Format Picture dialog box 
ShowImportFormDataDialogDisplays the Import Form Data dialog box 
ShowInsertHyperlinkDialogDisplays the Insert Hyperlink dialog box 
ShowInsertSymbolDialogDisplays the Insert Symbol dialog box 
ShowInsertTableDialogDisplays the Insert Table dialog box 
ShowMergeFormDialogDisplays the Merge Forms dialog box 
ShowSetLanguageDialogDisplays the Language dialog box 
ShowSetSelectedTextFontColorDialogDisplays the Color dialog box for setting font color 
ShowSetSelectedTextHighlightColorDialogDisplays the Color dialog box for setting highlight color 
ShowSplitCellsDialogDisplays the Split Cells dialog box 
ShowTablePropertiesDialogDisplays the Table Properties dialog box 
SplitCellsSplits the selected cell 
SubmitSubmits the form 
UndoPerforms an undo operation 
WorkOfflineSets the application to work offline 

For more information about the FormControl object, see Hosting the InfoPath 2007 Form Editing Environment in a Custom Windows Form Application and the "InfoPath Editor Hosted as a Control" section of What's New for InfoPath Developers.

Community Additions

Show: