<?xml version="1.0" encoding="utf-8"?> <Type Name="AmbientValueAttribute" FullName="System.ComponentModel.AmbientValueAttribute"> <TypeSignature Language="C#" Maintainer="auto" Value="public sealed class AmbientValueAttribute : Attribute" /> <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit AmbientValueAttribute extends System.Attribute" /> <AssemblyInfo> <AssemblyName>System</AssemblyName> <AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey> <AssemblyVersion>1.0.3300.0</AssemblyVersion> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement> <Base> <BaseTypeName>System.Attribute</BaseTypeName> </Base> <Interfaces /> <Attributes> <Attribute> <AttributeName>System.AttributeUsage(System.AttributeTargets.All)</AttributeName> </Attribute> </Attributes> <Docs> <remarks> <attribution license="cc4" from="Microsoft" modified="false" /> <para>If a property on a control has ambient behavior, this attribute must be present. Ambient properties query their parent for their value, for example, a <see cref="P:System.Windows.Forms.Control.Font" /> property or a <see cref="P:System.Windows.Forms.Control.BackColor" /> property.</para> <para>Typically, a visual designer uses the <see cref="T:System.ComponentModel.AmbientValueAttribute" /> attribute to decide which value to persist for a property. This is usually a value that causes the property to get its value from another source. An example of an ambient value is <see cref="F:System.Drawing.Color.Empty" /> as the ambient value for the <see cref="P:System.Windows.Forms.Control.BackColor" /> property. If you have a control on a form and the <see cref="P:System.Windows.Forms.Control.BackColor" /> property of the control is set to a different color than the <see cref="P:System.Windows.Forms.Control.BackColor" /> property of the form, you can reset the <see cref="P:System.Windows.Forms.Control.BackColor" /> property of the control to that of the form by setting the <see cref="P:System.Windows.Forms.Control.BackColor" /> of the control to <see cref="F:System.Drawing.Color.Empty" />.</para> </remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Specifies the value to pass to a property to cause the property to get its value from another source. This is known as <newTerm>ambience</newTerm>. This class cannot be inherited.</para> </summary> </Docs> <Members> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public AmbientValueAttribute (bool value);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(bool value) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="value" Type="System.Boolean" /> </Parameters> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.ComponentModel.AmbientValueAttribute" /> class, given a Boolean value for its value.</para> </summary> <param name="value"> <attribution license="cc4" from="Microsoft" modified="false" />The value of this attribute. </param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public AmbientValueAttribute (byte value);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int8 value) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="value" Type="System.Byte" /> </Parameters> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.ComponentModel.AmbientValueAttribute" /> class, given an 8-bit unsigned integer for its value.</para> </summary> <param name="value"> <attribution license="cc4" from="Microsoft" modified="false" />The value of this attribute. </param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public AmbientValueAttribute (char value);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(char value) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="value" Type="System.Char" /> </Parameters> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.ComponentModel.AmbientValueAttribute" /> class, given a Unicode character for its value.</para> </summary> <param name="value"> <attribution license="cc4" from="Microsoft" modified="false" />The value of this attribute. </param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public AmbientValueAttribute (double value);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(float64 value) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="value" Type="System.Double" /> </Parameters> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.ComponentModel.AmbientValueAttribute" /> class, given a double-precision floating-point number for its value.</para> </summary> <param name="value"> <attribution license="cc4" from="Microsoft" modified="false" />The value of this attribute. </param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public AmbientValueAttribute (short value);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int16 value) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="value" Type="System.Int16" /> </Parameters> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.ComponentModel.AmbientValueAttribute" /> class, given a 16-bit signed integer for its value.</para> </summary> <param name="value"> <attribution license="cc4" from="Microsoft" modified="false" />The value of this attribute. </param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public AmbientValueAttribute (int value);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int32 value) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="value" Type="System.Int32" /> </Parameters> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.ComponentModel.AmbientValueAttribute" /> class, given a 32-bit signed integer for its value.</para> </summary> <param name="value"> <attribution license="cc4" from="Microsoft" modified="false" />The value of this attribute. </param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public AmbientValueAttribute (long value);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int64 value) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="value" Type="System.Int64" /> </Parameters> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.ComponentModel.AmbientValueAttribute" /> class, given a 64-bit signed integer for its value.</para> </summary> <param name="value"> <attribution license="cc4" from="Microsoft" modified="false" />The value of this attribute. </param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public AmbientValueAttribute (object value);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(object value) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="value" Type="System.Object" /> </Parameters> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.ComponentModel.AmbientValueAttribute" /> class, given an object for its value.</para> </summary> <param name="value"> <attribution license="cc4" from="Microsoft" modified="false" />The value of this attribute. </param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public AmbientValueAttribute (float value);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(float32 value) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="value" Type="System.Single" /> </Parameters> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.ComponentModel.AmbientValueAttribute" /> class, given a single-precision floating point number for its value.</para> </summary> <param name="value"> <attribution license="cc4" from="Microsoft" modified="false" />The value of this attribute. </param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public AmbientValueAttribute (string value);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string value) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="value" Type="System.String" /> </Parameters> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.ComponentModel.AmbientValueAttribute" /> class, given a string for its value.</para> </summary> <param name="value"> <attribution license="cc4" from="Microsoft" modified="false" />The value of this attribute. </param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public AmbientValueAttribute (Type type, string value);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Type type, string value) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="type" Type="System.Type" /> <Parameter Name="value" Type="System.String" /> </Parameters> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.ComponentModel.AmbientValueAttribute" /> class, given the value and its type.</para> </summary> <param name="type"> <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Type" /> of the <paramref name="value" /> parameter. </param> <param name="value"> <attribution license="cc4" from="Microsoft" modified="false" />The value for this attribute. </param> </Docs> </Member> <Member MemberName="Equals"> <MemberSignature Language="C#" Value="public override bool Equals (object obj);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool Equals(object obj) cil managed" /> <MemberType>Method</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>System.Boolean</ReturnType> </ReturnValue> <Parameters> <Parameter Name="obj" Type="System.Object" /> </Parameters> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Determines whether the specified <see cref="T:System.ComponentModel.AmbientValueAttribute" /> is equal to the current <see cref="T:System.ComponentModel.AmbientValueAttribute" />.</para> </summary> <returns> <attribution license="cc4" from="Microsoft" modified="false" /> <para>true if the specified <see cref="T:System.ComponentModel.AmbientValueAttribute" /> is equal to the current <see cref="T:System.ComponentModel.AmbientValueAttribute" />; otherwise, false.</para> </returns> <param name="obj"> <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.ComponentModel.AmbientValueAttribute" /> to compare with the current <see cref="T:System.ComponentModel.AmbientValueAttribute" />.</param> </Docs> </Member> <Member MemberName="GetHashCode"> <MemberSignature Language="C#" Value="public override int GetHashCode ();" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetHashCode() cil managed" /> <MemberType>Method</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>System.Int32</ReturnType> </ReturnValue> <Parameters /> <Docs> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Returns the hash code for this instance.</para> </summary> <returns> <attribution license="cc4" from="Microsoft" modified="false" /> <para>A hash code for the current <see cref="T:System.ComponentModel.AmbientValueAttribute" />.</para> </returns> </Docs> </Member> <Member MemberName="Value"> <MemberSignature Language="C#" Value="public object Value { get; }" /> <MemberSignature Language="ILAsm" Value=".property instance object Value" /> <MemberType>Property</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>System.Object</ReturnType> </ReturnValue> <Docs> <value>To be added: an object of type 'object'</value> <remarks>To be added</remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Gets the object that is the value of this <see cref="T:System.ComponentModel.AmbientValueAttribute" />.</para> </summary> </Docs> </Member> </Members> </Type>