Table 1. With the new enhancements and additions to content controls in Word , the object model for Word has been updated to allow for programmatic manipulation of the new feature set. The following sections provide more information about the specific object model changes related to each content control enhancement. Several object model additions are included in Word for content control visualization enhancements.
The following table list new members of the ContentControl object for visualization. The following table lists constants in the new WdContentControlAppearance enumeration. The following code sample shows how to create rich text content controls and set visualization programmatically. No additions were made to the Word object model to accommodate rich text mapping to XML nodes in the document data store.
Instead, use the existing object model to map a rich text content control to an XML node in the document data store. The following code sample shows how to map a rich text content control to an XML node programmatically. The repeating section content control is available in the object model by using the following additions to the ContentControl object and the new RepeatingSectionItem and RepeatingSectionItemColl objects. Table 4 lists the most important new members of the ContentControl object for repeating section content controls.
Table 6 lists the most important members of the RepeatingSectionItemColl object. Table 7 shows the new member of the WdContentControlType enumeration for repeating section content controls. The individual repeating items within the repeating section content control that surround each individual item are saved as rich text content controls using the existing WordprocessingML representation.
Table 8 lists new elements in the WordprocessingML schema for repeating section content controls. Table 8. New elements in the WordprocessingML schema for repeating section content controls. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Please rate your experience Yes No. Any additional feedback? Note If not stated otherwise, this section discusses the visualization of content controls when the document is not viewed in Design Mode.
Note Rich text content controls cannot contain other rich text content controls. In this article. The default value is the color used in Word Appearance as WdContentControlAppearance.
AllowInsertDeleteSection as Boolean. Gets or sets whether users can add or remove sections from the content control by using the UI. If this property is called for a content control that is not of type repeating section, the call fails with the following error message: "This property can only be used with repeating section content controls. RepeatingSectionItemTitle as String. Gets or sets the name of repeating section items used in the context menu.
If this property is called for a content control that is not of type repeating section, the call fails with: "This property can only be used with repeating section content controls. The value of the IsChecked property determines the state of the CheckBox , and its state determines what appears in the box. This table lists the possible values of IsChecked , the corresponding states of the CheckBox , and the appearance of the CheckBox. You specify the appearance of a control when it is in a certain state by using VisualState objects.
When the control enters the state that the VisualState. Name property specifies, the property changes in the Setter or Storyboard are applied. When the control exits the state, the changes are removed. The example sets the VisualStateManager. VisualStateGroups attached property on the Border , which is the root element of the ControlTemplate.
To better understand how VisualState objects work, consider what happens when the CheckBox goes from the Unchecked state to the Checked state, then to the Indeterminate state, and then back to the Unchecked state. Here are the transitions. For more info about how to create visual states for controls, and in particular how to use the Storyboard class and the animation types, see Storyboarded animations for visual states. A fast way to apply themes to your controls is to right-click on a control on the Microsoft Visual Studio Document Outline and select Edit Theme or Edit Style depending on the control you are right-clicking on.
You can then apply an existing theme by selecting Apply Resource or define a new one by selecting Create Empty. When you create a new template for a control, in addition to possibly changing the control's behavior and visual appearance, you might also be changing how the control represents itself to accessibility frameworks.
All of the default controls and their templates have support for common UI Automation control types and patterns that are appropriate for the control's purpose and function. These control types and patterns are interpreted by UI Automation clients such as assistive technologies, and this enables a control to be accessible as a part of a larger accessible app UI. To separate the basic control logic and also to satisfy some of the architectural requirements of UI Automation, control classes include their accessibility support in a separate class, an automation peer.
The automation peers sometimes have interactions with the control templates because the peers expect certain named parts to exist in the templates, so that functionality such as enabling assistive technologies to invoke actions of buttons is possible. When you create a completely new custom control, you sometimes also will want to create a new automation peer to go along with it. For more info, see Custom automation peers.
Authorization Phase May 18, Key Assessor Documents May 18, Continuous Monitoring Phase April 15, Continuous Monitoring Incident Response. Authorization Phase April 7, Preparation Phase April 1, Readiness Assessment Report. Authorization Phase March 26, Program Documents System Security Plan.
Key Agency Documents December 11, Authorization Phase December 7, Authorization Phase August 6, Authorization Phase July 23, Key Agency Documents May 7, Preparation Phase March 26, JAB Authorization.
Authorization Phase June 20, Continuous Monitoring Phase August 28, Continuous Monitoring. Continuous Monitoring Significant Changes. Preparation Phase July 1, Continuous Monitoring Phase April 4, Continuous Monitoring Phase February 23, Continuous Monitoring Phase February 21, Continuous Monitoring Phase January 31, Key Agency Documents December 8,
0コメント