1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434
|
<?xml version="1.0" encoding="utf-8"?>
<Type Name="MenuItemStyle" FullName="System.Web.UI.WebControls.MenuItemStyle">
<TypeSignature Language="C#" Value="public sealed class MenuItemStyle : System.Web.UI.WebControls.Style" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Web.UI.WebControls.Style</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> class to represent the style of a menu item in the <see cref="T:System.Web.UI.WebControls.Menu" /> control. A menu item is displayed in either a static menu or a dynamic menu. A static menu is always displayed in a <see cref="T:System.Web.UI.WebControls.Menu" /> control, whereas a dynamic menu is displayed only when the user positions the mouse pointer over a parent menu item that contains a dynamic submenu. You can specify different style characteristics (such as font size and color) for each of the different menu item types. The following table lists the available menu item styles.</para>
<list type="table">
<listheader>
<item>
<term>
<para>Menu item style property</para>
</term>
<description>
<para>Description</para>
</description>
</item>
</listheader>
<item>
<term>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.DynamicHoverStyle" />
</para>
</term>
<description>
<para>The style settings for a dynamic menu item when the mouse pointer is positioned over it.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.DynamicMenuItemStyle" />
</para>
</term>
<description>
<para>The style settings for an individual dynamic menu item.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.DynamicMenuStyle" />
</para>
</term>
<description>
<para>The style settings for a dynamic menu.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.DynamicSelectedStyle" />
</para>
</term>
<description>
<para>The style settings for the currently selected dynamic menu item.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.StaticHoverStyle" />
</para>
</term>
<description>
<para>The style settings for a static menu item when the mouse pointer is positioned over it.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.StaticMenuItemStyle" />
</para>
</term>
<description>
<para>The style settings for an individual static menu item.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.StaticMenuStyle" />
</para>
</term>
<description>
<para>The style settings for a static menu.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.StaticSelectedStyle" />
</para>
</term>
<description>
<para>The style settings for the currently selected static menu item.</para>
</description>
</item>
</list>
<para>When multiple style properties are set for a static menu item, the style properties are applied in the following order:</para>
<list type="ordered">
<item>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.StaticMenuStyle" />.</para>
</item>
<item>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.StaticMenuItemStyle" />. If the <see cref="P:System.Web.UI.WebControls.Menu.LevelMenuItemStyles" /> collection or <see cref="P:System.Web.UI.WebControls.Menu.LevelSubMenuStyles" /> collection is defined, it is applied at this time, overriding the other menu item style properties.</para>
</item>
<item>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.StaticSelectedStyle" />. If the <see cref="P:System.Web.UI.WebControls.Menu.LevelSelectedStyles" /> collection is defined, it is applied at this time, overriding the other menu item style properties.</para>
</item>
<item>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.StaticHoverStyle" />.</para>
</item>
</list>
<para>Likewise, the style properties for a dynamic menu item are applied in the following order:</para>
<list type="ordered">
<item>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.DynamicMenuStyle" />.</para>
</item>
<item>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.DynamicMenuItemStyle" />. If the <see cref="P:System.Web.UI.WebControls.Menu.LevelMenuItemStyles" /> collection or <see cref="P:System.Web.UI.WebControls.Menu.LevelSubMenuStyles" /> collection is defined, it is applied at this time, overriding the other menu item style properties.</para>
</item>
<item>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.DynamicSelectedStyle" />. If the <see cref="P:System.Web.UI.WebControls.Menu.LevelSelectedStyles" /> collection is defined, it is applied at this time, overriding the other menu item style properties.</para>
</item>
<item>
<para>
<see cref="P:System.Web.UI.WebControls.Menu.DynamicHoverStyle" />.</para>
</item>
</list>
<para>The <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> class inherits most of its members from the <see cref="T:System.Web.UI.WebControls.Style" /> class. It extends the <see cref="T:System.Web.UI.WebControls.Style" /> class by providing properties that control the amount of space around a menu item's text, as well as the space between adjacent menu items. Use the <see cref="P:System.Web.UI.WebControls.MenuItemStyle.HorizontalPadding" /> property to control the amount of space to the left and right of the menu item's text. Similarly, the <see cref="P:System.Web.UI.WebControls.MenuItemStyle.VerticalPadding" /> property controls the amount of space above and below the menu item's text. You can control the amount of spacing between the menu item that the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> object is applied to and its adjacent menu items by setting the <see cref="P:System.Web.UI.WebControls.MenuItemStyle.ItemSpacing" /> property. </para>
<para>For more information on the inherited style settings, see <see cref="T:System.Web.UI.WebControls.Style" />.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents the style of a menu item in a <see cref="T:System.Web.UI.WebControls.Menu" /> control. This class cannot be inherited.</para>
</summary>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MenuItemStyle ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use this constructor to create a new instance of the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> class. </para>
<block subset="none" type="note">
<para>This constructor is commonly used when extending the <see cref="T:System.Web.UI.WebControls.Menu" /> class to initialize the menu item style properties, such as <see cref="P:System.Web.UI.WebControls.Menu.DynamicMenuItemStyle" />.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> class.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MenuItemStyle (System.Web.UI.StateBag bag);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="bag" Type="System.Web.UI.StateBag" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use this constructor to create and initialize a new instance of the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> class using the <see cref="T:System.Web.UI.StateBag" /> object specified by the bag parameter.</para>
<block subset="none" type="note">
<para>This member is used primarily by control developers when deriving a custom control from the <see cref="T:System.Web.UI.WebControls.Menu" /> class. It is used to initialize the menu item style properties, such as <see cref="P:System.Web.UI.WebControls.Menu.DynamicMenuItemStyle" />.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> class using the specified state information.</para>
</summary>
<param name="bag">
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Web.UI.StateBag" /> that represents the state bag in which menu item style information is stored.</param>
</Docs>
</Member>
<Member MemberName="CopyFrom">
<MemberSignature Language="C#" Value="public override void CopyFrom (System.Web.UI.WebControls.Style s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.Web.UI.WebControls.Style" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="M:System.Web.UI.WebControls.MenuItemStyle.CopyFrom(System.Web.UI.WebControls.Style)" /> method to duplicate the style properties of the specified <see cref="T:System.Web.UI.WebControls.Style" /> object in the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> object that calls this method.</para>
<block subset="none" type="note">
<para>All properties in the current instance of the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> class will be replaced by the corresponding properties in the specified <see cref="T:System.Web.UI.WebControls.Style" /> object.</para>
</block>
<para>To copy style properties without replacing any set values, use the <see cref="M:System.Web.UI.WebControls.MenuItemStyle.MergeWith(System.Web.UI.WebControls.Style)" /> method.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Copies the style properties of the specified <see cref="T:System.Web.UI.WebControls.Style" /> object into the current instance of the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> class.</para>
</summary>
<param name="s">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Web.UI.WebControls.Style" /> to copy.</param>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="FillStyleAttributes">
<MemberSignature Language="C#" Value="protected override void FillStyleAttributes (System.Web.UI.CssStyleCollection attributes, System.Web.UI.IUrlResolutionService urlResolver);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="attributes" Type="System.Web.UI.CssStyleCollection" />
<Parameter Name="urlResolver" Type="System.Web.UI.IUrlResolutionService" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="M:System.Web.UI.WebControls.MenuItemStyle.FillStyleAttributes(System.Web.UI.CssStyleCollection,System.Web.UI.IUrlResolutionService)" /> method to add the style properties of the current instance of the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> class to the specified <see cref="T:System.Web.UI.CssStyleCollection" /> object.</para>
<block subset="none" type="note">
<para>This method is used only by control developers.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Adds the style properties of the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> object to the specified <see cref="T:System.Web.UI.CssStyleCollection" /> object.</para>
</summary>
<param name="attributes">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Web.UI.CssStyleCollection" /> to add the style properties to.</param>
<param name="urlResolver">
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Web.UI.IUrlResolutionService" />-implemented object that contains the context information for the current location (URL).</param>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="HorizontalPadding">
<MemberSignature Language="C#" Value="public System.Web.UI.WebControls.Unit HorizontalPadding { set; get; }" />
<MemberType>Property</MemberType>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.NotifyParentProperty(true)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(typeof(System.Web.UI.WebControls.Unit), "")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.Unit</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="P:System.Web.UI.WebControls.MenuItemStyle.HorizontalPadding" /> property to control the amount of horizontal space around the text of the menu item to which the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> object is applied. This space is inserted between the left edge of the text and the border of the text area, and between the right edge of the text and the text's border. To control the vertical spacing, use the <see cref="P:System.Web.UI.WebControls.MenuItemStyle.VerticalPadding" /> property.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the amount of space to the left and right of the menu item's text.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="IsEmpty">
<MemberSignature Language="C#" Value="public virtual bool IsEmpty { get; }" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<since version=".NET 2.0" />
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
</Attributes>
</Member>
<Member MemberName="ItemSpacing">
<MemberSignature Language="C#" Value="public System.Web.UI.WebControls.Unit ItemSpacing { set; get; }" />
<MemberType>Property</MemberType>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.NotifyParentProperty(true)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(typeof(System.Web.UI.WebControls.Unit), "")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.Unit</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="P:System.Web.UI.WebControls.MenuItemStyle.ItemSpacing" /> property to control the amount of vertical spacing between a menu item to which the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> object is applied and its adjacent menu items at the same level. This space is inserted between the upper edge of the current menu item and the lower edge of the previous menu item, as well as between the lower edge of the current menu item and upper edge of the next menu item.</para>
<block subset="none" type="note">
<para>The upper space is not rendered for the first menu item in the <see cref="T:System.Web.UI.WebControls.Menu" /> control.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the amount of vertical spacing between the menu item to which the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> object is applied and its adjacent menu items.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="MergeWith">
<MemberSignature Language="C#" Value="public override void MergeWith (System.Web.UI.WebControls.Style s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.Web.UI.WebControls.Style" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="M:System.Web.UI.WebControls.MenuItemStyle.MergeWith(System.Web.UI.WebControls.Style)" /> method to combine the style properties of the specified <see cref="T:System.Web.UI.WebControls.Style" /> object with the style properties of the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> object that this method is called from.</para>
<block subset="none" type="note">
<para>This method joins the style properties by setting each property that is not set in the current <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> object with its corresponding value in the specified <see cref="T:System.Web.UI.WebControls.Style" /> object. Only properties that have not been set will be updated. If a property in the specified <see cref="T:System.Web.UI.WebControls.Style" /> object is not set, the corresponding property in the current <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> object does not change.</para>
</block>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Combines the style properties of the specified <see cref="T:System.Web.UI.WebControls.Style" /> object with those of the current instance of the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> class.</para>
</summary>
<param name="s">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Web.UI.WebControls.Style" /> to combine settings with.</param>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Reset">
<MemberSignature Language="C#" Value="public override void Reset ();" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="M:System.Web.UI.WebControls.MenuItemStyle.Reset" /> method to remove any defined style elements from the state bag and reset the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> object to its original state.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns the current instance of the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> class to its original state.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="VerticalPadding">
<MemberSignature Language="C#" Value="public System.Web.UI.WebControls.Unit VerticalPadding { set; get; }" />
<MemberType>Property</MemberType>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.NotifyParentProperty(true)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(typeof(System.Web.UI.WebControls.Unit), "")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.Unit</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="P:System.Web.UI.WebControls.MenuItemStyle.VerticalPadding" /> property to control the amount of vertical space around the text of the menu item to which the <see cref="T:System.Web.UI.WebControls.MenuItemStyle" /> object is applied. This space is inserted between the upper edge of the text and the border of the text area, as well as between the lower edge of the text and the text's border. To control the horizontal spacing, use the <see cref="P:System.Web.UI.WebControls.MenuItemStyle.HorizontalPadding" /> property.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the amount of space above and below a menu item's text.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
</Members>
</Type>
|