TextField Members
Include Protected Members
Include Inherited Members
Lightweight object that represents a part of a shape that can display text labels or areas.
The TextField type exposes the following members.
Constructors
Name
Description
Initializes a new instance of the TextField class.
Top
Methods
Name
Description
Performs the default action for the accessible object. (Inherited from ShapeField.)
By default, allow in-place editor to size automatically if the field supports auto-size. (Overrides ShapeField.AllowInPlaceEditorAutoSize(ShapeElement).)
Overloaded. Associates the shape field with a domain property that is assigned to a shape element.
Overloaded. Associates the visibility of the shape field with a domain property that is assigned to a shape element.
Returns a value indicating whether the value of this field can be edited. (Overrides ShapeField.CanEditValue(ShapeElement, DiagramClientView).)
Commits the pending edit. (Overrides ShapeField.CommitPendingEdit(ShapeElement, DiagramClientView).)
Performs a hit test on a specified point in the diagram to determine whether the point is in the bounds of the shape field. (Inherited from ShapeField.)
Navigates in the shape field by using the keyboard. (Inherited from ShapeField.)
Draws the text field. (Overrides ShapeField.DoPaint(DiagramPaintEventArgs, ShapeElement).)
Overloaded.
Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Locates the first child shape field in the parent shape field. (Inherited from ShapeField.)
Locates the last child shape field in the parent shape field. (Inherited from ShapeField.)
Locates the next child shape field in the parent shape field. (Inherited from ShapeField.)
Locates the next child shape field in the navigation sequence. (Inherited from ShapeField.)
Locates the previous child shape field in the parent shape field. (Inherited from ShapeField.)
Locates the previous child shape field in the navigation sequence. (Inherited from ShapeField.)
Gets the shape field and verifies whether it has focus. (Inherited from ShapeField.)
Gets the accessibility object that is assigned to the shape field. (Inherited from ShapeField.)
Gets the Accessibility object for the child shape field. (Inherited from ShapeField.)
Gets the number of Accessibility objects that are assigned to the parent shape field and its child shape fields. (Inherited from ShapeField.)
GetAccessibleDefaultActionDescription
Gets the default purpose of the shape field for the accessible object. (Inherited from ShapeField.)
Returns the default accessible description for a text field. (Overrides ShapeField.GetAccessibleDescription(ShapeElement).)
Gets the shape field Help for the accessible object. (Inherited from ShapeField.)
GetAccessibleHelpTopicFileName
Gets a topic in the Help for the accessible object. (Inherited from ShapeField.)
Gets the ID that is assigned to the Help topic for the accessible object. (Inherited from ShapeField.)
Returns the display text as the accessible name. (Overrides ShapeField.GetAccessibleName(ShapeElement).)
Retrieves the accessible role of this ShapeField. (Overrides ShapeField.GetAccessibleRole(ShapeElement).)
Retrieves the accessible state of this TextField. By default, the TextField is invisible to accessibility clients if the field is not focusable and there is no text to display. (Overrides ShapeField.GetAccessibleState(ShapeElement, DiagramClientView).)
Returns the accessible value. (Overrides ShapeField.GetAccessibleValue(ShapeElement).)
Returns the control for the active in-place editor. This method may return null, in which case no in-place editor is active for this field. (Overrides ShapeField.GetActiveInPlaceEditor(ShapeElement, DiagramClientView).)
If true, the text field's minimum required size will grow to accomodate the length of the diplay text. Autosizable text fields will still respect the minimum size specified in the AnchoringBehavior.
Gets the brush that draws the background for the shape element to which this shape field is assigned. (Inherited from ShapeField.)
Gets the ID of the brush that draws the background for the shape element to which this shape field is assigned. (Inherited from ShapeField.)
Gets the bounds for the shape field. (Inherited from ShapeField.)
Gets the pointer that appears when the mouse is pointing to the shape field. (Inherited from ShapeField.)
Gets the text to be displayed by this field.
Gets the shape field and verifies whether it can receive focus. (Inherited from ShapeField.)
Gets the font to draw with for the specified ShapeElement instance.
Gets the line spacing of this font (i.e., the height of a line of text) in world units. Line spacing is the ascent + the descent + some recommended extra. The ascent is the height of the character above the baseline, and the descent is the height of the character below the baseline. The extra is below the descent.
Gets the id of the font to draw with for the specified ShapeElement instance.
Serves as a hash function for a particular type. (Inherited from Object.)
Gets the bounds for the in-place editor. (Inherited from ShapeField.)
By default, we allow the in-place edit control to resize up to 75 characters. (Overrides ShapeField.GetMaximumInPlaceEditorSize(ShapeElement).)
Minimum in-place editor size is based on minimum width in characters and height in lines. (Overrides ShapeField.GetMinimumInPlaceEditorSize(ShapeElement).)
Gets the minimum width and heightfor this ShapeField in world units (Overrides ShapeField.GetMinimumSize(ShapeElement).)
If true, the text can wrap onto more than one line to fit the width available.
Gets the pen that draws the shape element to which the shape field is assigned. (Inherited from ShapeField.)
Gets the ID of the pen that draws the shape element to which the shape field is assigned. (Inherited from ShapeField.)
Gets the mouse action to activate when the user next clicks a specific point on the diagram. (Inherited from ShapeField.)
Gets the shape field and verifies whether it can be selected. (Inherited from ShapeField.)
Gets the string format to draw the text with for the specified ShapeElement instance.
Gets the brush to draw the text with for the specified ShapeElement instance.
Gets the id of the brush to draw the text with for the specified ShapeElement instance.
Gets the type of the current instance. (Inherited from Object.)
Gets the value for this TextField. (Overrides ShapeField.GetValue(ShapeElement).)
Gets the domain property that is assigned to the value in the shape field. (Inherited from ShapeField.)
Gets the shape field and verifies whether it appears. (Inherited from ShapeField.)
Gets the shape field and verifies whether it should appear to have the focus. (Inherited from ShapeField.)
Returns a value indicating whether in-place editing is active, with a commit pending. (Overrides ShapeField.HasPendingEdit(ShapeElement, DiagramClientView).)
Gets the shape field and verifies whether it appears to be selected. (Inherited from ShapeField.)
Overloaded. Gets the keys that the user pressed and verifies whether they can be used to navigate between shape fields.
Helper method to measure given text.
Creates a shallow copy of the current Object. (Inherited from Object.)
Moves the focus to the previous shape field in the navigation sequence for the selected shapes. (Inherited from ShapeField.)
Moves the focus to the next shape field in the navigation sequence for the selected shapes. (Inherited from ShapeField.)
Moves the focus to the first shape field in the navigation sequence for the selected shapes. (Inherited from ShapeField.)
Moves the focus to the last shape field in the navigation sequence for the selected shapes. (Inherited from ShapeField.)
Moves the focus to the next shape field in the navigation sequence for the selected shapes. (Inherited from ShapeField.)
Moves the focus to the previous shape field in the navigation sequence for the selected shapes. (Inherited from ShapeField.)
Alerts listeners when in-place editing has begun. (Inherited from ShapeField.)
Alerts listeners when the user has clicked a shape field. (Inherited from ShapeField.)
Invokes in-place editing by default. (Overrides ShapeField.OnDoubleClick(DiagramPointEventArgs).)
Alerts listeners when in-place editing has completed. (Inherited from ShapeField.)
Alerts listeners when the user has held down a key when pointing to a shape field. (Inherited from ShapeField.)
Invokes the editor if the field is editable and any alpha-numeric character is typed. (Overrides ShapeField.OnKeyPress(DiagramKeyPressEventArgs).)
Alerts listeners when the user has released a key when pointing to a shape field. (Inherited from ShapeField.)
Alerts listeners when the user is holding down the mouse over a shape field. (Inherited from ShapeField.)
Alerts listeners when the mouse has been moved over a shape field. (Inherited from ShapeField.)
Alerts listeners when the user has released the mouse button over a shape field. (Inherited from ShapeField.)
Alerts listeners when the mouse has been rotated over a shape field. (Inherited from ShapeField.)
Gets the shape field and verifies whether it is selected. (Inherited from ShapeField.)
Sets the selection to a range of child shape fields. (Inherited from ShapeField.)
Assigns the specified value to a shape field. (Inherited from ShapeField.)
Sets the visibility of the shape field. (Inherited from ShapeField.)
Returns a string that represents the current object. (Inherited from Object.)
Top
Properties
Name
Description
Describes how the content of the field should position and size itself in relation to the parent ShapeElement. (Inherited from ShapeField.)
Gets or sets the default accessible description. (Inherited from ShapeField.)
Gets or sets the default name of the shape field for the accessible object. (Inherited from ShapeField.)
Gets the default state of the shape field for the accessible object. (Inherited from ShapeField.)
If true, the text field's minimum reported size will grow to accomodate the length of the diplay text. Autosizable text fields will still respect the minimum size specified in the AnchoringBehavior.
Gets or sets the ID of the default brush to paint the background of the shape field. (Inherited from ShapeField.)
Gets or sets a value indicating whether the Escape key commits the edit. If true, the Enter key will be used as a CRLF for in-place editing.
Gets the shape field and verifies whether it can receive focus, or gives the shape field the ability to receive focus. (Inherited from ShapeField.)
Gets or sets the default font id.
DefaultInactiveSelectedBackgroundBrushId
Gets or sets the ID of the default background brush for the shape field. (Inherited from ShapeField.)
DefaultInactiveSelectedTextBrushId
Gets or sets the default brush id for the inactive selected text.
Gets or sets the default horizontal state for the text.
If true, the text automatically wraps over more than one line to fit into the width available.
Gets or sets the ID of the default pen to use for the shape field. (Inherited from ShapeField.)
DefaultReflectParentFocusedState
Gets the child shape field and verifies whether it should receive focus when its parent shape receives focus or sets the ability to reflect the focus state of its parent shape. (Inherited from ShapeField.)
DefaultReflectParentSelectedState
Gets the child shape field and verifies whether it should be selected when its parent shape is selected or sets the ability to reflect the selection state of its parent shape. (Inherited from ShapeField.)
Gets the shape field and verifies whether it can be selected by default or sets the default selection state of the shape field. (Inherited from ShapeField.)
DefaultSelectedBackgroundBrushId
Gets or sets the ID of the default background brush for the shape field. (Inherited from ShapeField.)
Gets or sets the default brush id for the selected text.
Gets or sets the default string format for text drawing.
Gets or sets the default text to draw.
Gets or sets the default brush id for the text.
Gets the shape field and verifies whether it appears by default or sets the default visibility of the shape field. (Inherited from ShapeField.)
Gets or sets the property name that the display text is associated with.
(Do not use - will be changed)
(Do not use - will be changed)
Gets the name of the shape field. (Inherited from ShapeField.)
Top