共用方式為


CHtmlEditCtrlBase Members

Methods

AddToGlyphTable

Adds an entry to the glyph table, which specifies images to display for specific tags in design mode.

Bold

Toggles the bold state of the selected text.

Button

Overwrites a button control on the current selection.

CheckBox

Overwrites a check box control on the current selection.

ClearSelection

Clears the current selection.

Copy

Copies the current selection to the clipboard.

Cut

Copies the current selection to the clipboard and then deletes it.

Delete

Deletes the current selection.

DropDownBox

Overwrites a drop-down selection control on the current selection.

EmptyGlyphTable

Removes all entries from the glyph table, which hides all images displayed for tags in design mode.

ExecCommand

Executes a command.

Font

Opens a font dialog box to enable the user to change the text color, font, and font size of the current selection.

GetAbsolutePosition

Returns whether an element's position property is "absolute."

GetBackColor

Retrieves the background color of the current selection.

GetBlockFormat

Retrieves the current block format tag.

GetBlockFormatNames

Retrieves the strings corresponding to the available block format tags.

GetBookMark

Retrieves the name of a bookmark anchor.

GetDocument

Retrieves the document object.

GetDocumentHTML

Retrieves the HTML of the current document.

GetDocumentTitle

Retrieves the document's title.

GetEvent

Retrieves an interface pointer to the event object that contains information relevant to the most recent event.

GetEventSrcElement

Retrieves the object that fired the event.

GetFontFace

Retrieves the font name for the current selection.

GetFontSize

Retrieves the font size for the current selection.

GetForeColor

Retrieves the foreground (text) color of the current selection.

GetFrameZone

Returns the security zone of the current page in the web browser.

GetIsDirty

Indicates whether the HTML document has changed.

GetShowAlignedSiteTags

Returns whether a glyph is displayed for all elements that have a styleFloat property.

GetShowAllTags

Returns whether the WebBrowser displays glyphs to show the location of all tags in a document.

GetShowAreaTags

Retrieves whether the WebBrowser displays a glyph for area tags.

GetShowBRTags

Retrieves whether the WebBrowser displays a glyph for br tags.

GetShowCommentTags

Retrieves whether the WebBrowser displays a glyph for comment tags.

GetShowMiscTags

Retrieves whether the WebBrowser displays all the tags shown in Microsoft Internet Explorer 4.0.

GetShowScriptTags

Retrieves whether the WebBrowser displays a glyph for all the script tags.

GetShowStyleTags

Retrieves whether the WebBrowser displays a glyph for all the style tags.

GetShowUnknownTags

Retrieves whether the WebBrowser displays a glyph for all unknown tags.

HorizontalLine

Overwrites a horizontal line on the current selection.

HyperLink

Inserts a hyperlink on the current selection.

IE50Paste

Performs a paste operation compatible with Microsoft Internet Explorer 5.

Iframe

Overwrites an inline frame on the current selection.

Image

Overwrites an image on the current selection.

Indent

Increases the indent of the selected text by one indentation increment.

InsFieldSet

Overwrites a box on the current selection.

InsInputButton

Overwrites a button control on the current selection.

InsInputHidden

Inserts a hidden control on the current selection.

InsInputImage

Overwrites an image control on the current selection.

InsInputPassword

Overwrites a password control on the current selection.

InsInputReset

Overwrites a reset control on the current selection.

InsInputSubmit

Overwrites a submit control on the current selection.

InsInputUpload

Overwrites a file upload control on the current selection.

Is1DElement

Determines if an element is statically positioned.

Is2DElement

Determines if an element is absolutely positioned.

Italic

Toggles the current selection between italic and nonitalic.

JustifyCenter

Centers the format block in which the current selection is located.

JustifyLeft

Left-justifies the format block in which the current selection is located.

JustifyRight

Right-justifies the format block in which the current selection is located.

ListBox

Overwrites a list box selection control on the current selection.

Marquee

Overwrites an empty marquee on the current selection.

NewDocument

Creates a new document.

OrderList

Toggles the current selection between an ordered list and a normal format block.

Outdent

Decreases by one increment the indentation of the format block in which the current selection is located.

Paragraph

Overwrites a line break on the current selection.

Paste

Overwrites the contents of the clipboard on the current selection.

PrintDocument

Prints the current document.

PrintPreview

Opens the Print Preview window for the current document using either the default print preview template or a custom template.

QueryStatus

Call this method to query the status of commands.

RadioButton

Overwrites a radio control on the current selection.

RefreshDocument

Refreshes the current document.

RemoveFormat

Removes the formatting tags from the current selection.

SaveAs

Saves the current Web page to a file.

SelectAll

Selects the entire document.

Set2DPosition

Allows absolutely positioned elements to be moved by dragging.

SetAbsolutePosition

Sets an element's position property to "absolute" or "static."

SetAtomicSelection

Set atomic selection mode.

SetAutoURLDetectMode

Turns automatic URL detection on and off.

SetBackColor

Sets the background color of the current selection.

SetBlockFormat

Sets the current block format tag.

SetBookMark

Creates a bookmark anchor for the current selection or insertion point.

SetCSSEditingLevel

Selects which CSS level (CSS1 or CSS2) the editor will support, if any.

SetDefaultComposeSettings

Call this method to set the default compose settings.

SetDesignMode

Set design mode.

SetDisableEditFocusUI

Disables the hatched border and handles around an element that has edit focus.

SetDocumentHTML

Sets the HTML of the current document.

SetFontFace

Sets the font for the current selection.

SetFontSize

Sets the font size for the current selection.

SetForeColor

Sets the foreground (text) color of the current selection.

SetIE5PasteMode

Sets the paste operation to be compatible with Microsoft Internet Explorer 5.

SetLiveResize

Causes the WebBrowser to update an element's appearance continuously during a resizing or moving operation.

SetMultiSelect

Enables multiple selection.

SetOverrideCursor

Commands the WebBrowser never to change the mouse pointer.

SetOverwriteMode

Toggles the text-entry mode between insert and overwrite.

SetRespectVisInDesign

Hides invisible elements in design mode.

SetShowAlignedSiteTags

Displays a glyph for all elements that have a styleFloat property.

SetShowAllTags

Displays glyphs to show the location of all tags in a document.

SetShowAreaTags

Displays a glyph for all the area tags.

SetShowBRTags

Displays a glyph for all the br tags.

SetShowCommentTags

Displays a glyph for all the comment tags.

SetShowMiscTags

Displays all the tags shown in Microsoft Internet Explorer 4.0.

SetShowScriptTags

Displays a glyph for all the script tags.

SetShowStyleTags

Displays a glyph for all the style tags.

SetShowUnknownTags

Displays a glyph for all the unknown tags.

TextArea

Overwrites a multiline text input control on the current selection.

TextBox

Overwrites a text control on the current selection.

UnBookmark

Removes any bookmark from the current selection.

Underline

Toggles the current selection between underlined and not underlined.

Unlink

Removes any hyperlink from the current selection.

UnorderList

Toggles the current selection between an ordered list and a normal format block.

See Also

Concepts

CHtmlEditCtrlBase Class