Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Design / PropertyValueUIItem.cs / 1 / PropertyValueUIItem.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Drawing.Design {
using System.Diagnostics;
using Microsoft.Win32;
using System.Collections;
using System.Drawing;
///
///
/// Provides information about the property value UI including the invoke
/// handler, tool tip, and the glyph icon to be displayed on the property
/// browser.
///
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class PropertyValueUIItem {
///
///
/// The image to display for this. Must be 8x8
///
private Image itemImage;
///
///
/// The handler to fire if this item is double clicked.
///
private PropertyValueUIItemInvokeHandler handler;
///
///
/// The tooltip for this item.
///
private string tooltip;
///
///
/// Initiailzes a new instance of the class.
///
public PropertyValueUIItem(Image uiItemImage, PropertyValueUIItemInvokeHandler handler, string tooltip){
this.itemImage = uiItemImage;
this.handler = handler;
if (itemImage == null) {
throw new ArgumentNullException("uiItemImage");
}
if (handler == null) {
throw new ArgumentNullException("handler");
}
this.tooltip = tooltip;
}
///
///
/// Gets or sets
/// the 8x8 pixel image that will be drawn on the properties window.
///
public virtual Image Image {
get {
return itemImage;
}
}
///
///
/// Gets or sets the handler that will be raised when this item is double clicked.
///
public virtual PropertyValueUIItemInvokeHandler InvokeHandler {
get {
return handler;
}
}
///
///
/// Gets or sets the
/// tool tip to display for this item.
///
public virtual string ToolTip {
get {
return tooltip;
}
}
///
///
/// Resets the UI item.
///
public virtual void Reset(){
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListViewInsertionMark.cs
- ApplicationProxyInternal.cs
- SmiMetaDataProperty.cs
- AuthenticationException.cs
- BaseTemplateBuildProvider.cs
- TraceContextRecord.cs
- AspNetHostingPermission.cs
- FilterEventArgs.cs
- DragDeltaEventArgs.cs
- HtmlEncodedRawTextWriter.cs
- RealProxy.cs
- EllipseGeometry.cs
- ImagingCache.cs
- StringBuilder.cs
- XmlSchemaException.cs
- EntityDataSourceDesigner.cs
- ByteArrayHelperWithString.cs
- OleStrCAMarshaler.cs
- AccessText.cs
- WmlPanelAdapter.cs
- PageBreakRecord.cs
- MetadataArtifactLoaderComposite.cs
- SynchronizedChannelCollection.cs
- MutexSecurity.cs
- TypeTypeConverter.cs
- SecurityElement.cs
- XmlMembersMapping.cs
- WebPartZoneCollection.cs
- XmlSchemaInfo.cs
- DataListGeneralPage.cs
- Optimizer.cs
- PermissionSetTriple.cs
- DbQueryCommandTree.cs
- SerializationAttributes.cs
- SqlDataSourceFilteringEventArgs.cs
- SafeNativeMethods.cs
- WebPartManagerInternals.cs
- QilInvokeLateBound.cs
- ObjectViewEntityCollectionData.cs
- ToolStripDropDownButton.cs
- XmlCompatibilityReader.cs
- HttpResponseHeader.cs
- Cursor.cs
- Compiler.cs
- Container.cs
- Bits.cs
- CircleHotSpot.cs
- QueryOptionExpression.cs
- UpdatePanelControlTrigger.cs
- UserMapPath.cs
- ExpressionConverter.cs
- SystemIcmpV4Statistics.cs
- MethodBody.cs
- ActivitySurrogateSelector.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- SendMailErrorEventArgs.cs
- PnrpPermission.cs
- ToolboxItemCollection.cs
- LinearGradientBrush.cs
- EntitySet.cs
- BamlReader.cs
- DbProviderFactories.cs
- DataGridAutoFormat.cs
- ValueUtilsSmi.cs
- ChtmlSelectionListAdapter.cs
- ImageSource.cs
- embossbitmapeffect.cs
- DataGridViewRowEventArgs.cs
- Helpers.cs
- MatrixAnimationUsingPath.cs
- TakeOrSkipWhileQueryOperator.cs
- ScrollBarRenderer.cs
- InternalSendMessage.cs
- UnsafeNativeMethods.cs
- Parser.cs
- SystemResourceHost.cs
- AnimatedTypeHelpers.cs
- DataGridViewDesigner.cs
- Keyboard.cs
- OleDbDataAdapter.cs
- HelpKeywordAttribute.cs
- messageonlyhwndwrapper.cs
- TimeEnumHelper.cs
- ToolStripMenuItem.cs
- InternalSafeNativeMethods.cs
- GeneratedContractType.cs
- RubberbandSelector.cs
- LayoutEditorPart.cs
- RequestTimeoutManager.cs
- JsonEnumDataContract.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ExpandableObjectConverter.cs
- DetailsViewDeleteEventArgs.cs
- ColumnCollectionEditor.cs
- FamilyMapCollection.cs
- TreeNodeCollection.cs
- SystemColors.cs
- RedistVersionInfo.cs
- SequentialUshortCollection.cs
- webeventbuffer.cs