예제 #1
0
 /// <summary>
 /// Construct a <see cref="ColorPair"/> from the properties in a <see cref="IDictionary"/>
 /// </summary>
 /// <param name="context">designer context</param>
 /// <param name="propertyValues">The "serialized" values for the <see cref="ColorPair"/></param>
 /// <returns>
 /// A <see cref="ColorPair"/>
 /// </returns>
 public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
 {
     ColorPair colorPair = new ColorPair();
     colorPair.Foreground = (System.Drawing.Color)propertyValues["Foreground"];
     colorPair.Background = (System.Drawing.Color)propertyValues["Background"];
     return (object)colorPair ;
 }
예제 #2
0
		/// <summary>
		/// Resets the property value back to its default
		/// </summary>
		/// <remarks>
		/// Called by the IDE
		/// </remarks>
		protected void ResetTextHighlightColors() {
			TextHighlightColors = DefaultTextHighlightColors ;
		}