Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Misc / ImageListUtils.cs / 1305376 / ImageListUtils.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; // Miscellaneous utilities static internal class ImageListUtils { public static PropertyDescriptor GetImageListProperty(PropertyDescriptor currentComponent, ref object instance) { if(instance is object[]) //multiple selection is not supported by this class return null; PropertyDescriptor imageListProp = null; object parentInstance = instance; RelatedImageListAttribute relILAttr = currentComponent.Attributes[typeof(RelatedImageListAttribute)] as RelatedImageListAttribute; if (relILAttr != null) { string[] pathInfo = relILAttr.RelatedImageList.Split('.'); for(int i=0;i// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; // Miscellaneous utilities static internal class ImageListUtils { public static PropertyDescriptor GetImageListProperty(PropertyDescriptor currentComponent, ref object instance) { if(instance is object[]) //multiple selection is not supported by this class return null; PropertyDescriptor imageListProp = null; object parentInstance = instance; RelatedImageListAttribute relILAttr = currentComponent.Attributes[typeof(RelatedImageListAttribute)] as RelatedImageListAttribute; if (relILAttr != null) { string[] pathInfo = relILAttr.RelatedImageList.Split('.'); for(int i=0;i
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Win32.cs
- RowBinding.cs
- Brushes.cs
- TransportSecurityBindingElement.cs
- PhysicalFontFamily.cs
- OdbcFactory.cs
- SupportingTokenDuplexChannel.cs
- BitmapEffectRenderDataResource.cs
- DesignerSerializationOptionsAttribute.cs
- ScriptResourceHandler.cs
- ScriptingRoleServiceSection.cs
- ResourceReferenceKeyNotFoundException.cs
- BamlResourceDeserializer.cs
- BaseDataList.cs
- AttachedProperty.cs
- PropertyInfoSet.cs
- IPAddressCollection.cs
- RuntimeArgumentHandle.cs
- MembershipValidatePasswordEventArgs.cs
- x509store.cs
- SelectionChangedEventArgs.cs
- SplitContainer.cs
- ListViewTableCell.cs
- UpDownEvent.cs
- AssemblyLoader.cs
- DataStreamFromComStream.cs
- ObjectHandle.cs
- DynamicExpression.cs
- RelationshipDetailsCollection.cs
- ConstrainedDataObject.cs
- DataGridViewTopRowAccessibleObject.cs
- TextOptions.cs
- DBDataPermission.cs
- OrderByQueryOptionExpression.cs
- ForAllOperator.cs
- LoginUtil.cs
- XmlSchemaChoice.cs
- XmlSchemaNotation.cs
- LookupBindingPropertiesAttribute.cs
- EdmProviderManifest.cs
- ConsumerConnectionPointCollection.cs
- DataGridViewCellCancelEventArgs.cs
- NativeRightsManagementAPIsStructures.cs
- SafeSecurityHelper.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- CreateDataSourceDialog.cs
- ComponentEditorPage.cs
- RadioButton.cs
- UserMapPath.cs
- TemplateBindingExtension.cs
- QueueProcessor.cs
- DataGridViewColumnConverter.cs
- EmissiveMaterial.cs
- MemberMemberBinding.cs
- Internal.cs
- LongValidator.cs
- KeyedQueue.cs
- BuildTopDownAttribute.cs
- DeclarativeCatalogPartDesigner.cs
- CustomAttributeSerializer.cs
- SafeWaitHandle.cs
- MultipartIdentifier.cs
- CompilerErrorCollection.cs
- PeerPresenceInfo.cs
- WorkflowHostingResponseContext.cs
- PasswordDeriveBytes.cs
- CaretElement.cs
- AllMembershipCondition.cs
- AddingNewEventArgs.cs
- ObjectSecurityT.cs
- SafeIUnknown.cs
- CroppedBitmap.cs
- XmlReader.cs
- WindowsRegion.cs
- CaseInsensitiveComparer.cs
- Reference.cs
- CalendarDesigner.cs
- SettingsSavedEventArgs.cs
- QuadraticBezierSegment.cs
- SimpleApplicationHost.cs
- TimeSpanStorage.cs
- ProxyWebPartManager.cs
- ScrollPattern.cs
- ByteKeyFrameCollection.cs
- HostingEnvironmentSection.cs
- DetailsViewRow.cs
- ClaimTypeElementCollection.cs
- PassportAuthenticationModule.cs
- CompilerState.cs
- BeginSelectCardRequest.cs
- MatrixConverter.cs
- Lookup.cs
- ServiceEndpointCollection.cs
- ToolStripCodeDomSerializer.cs
- RelatedPropertyManager.cs
- UICuesEvent.cs
- RadioButtonList.cs
- RegexFCD.cs
- MouseButtonEventArgs.cs
- Model3D.cs