Export (0) Print
Expand All

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)

public enum CommandIds

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

For more information about the FormControl object, see Hosting the InfoPath 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.

Show:
© 2014 Microsoft