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
- DBConcurrencyException.cs
- ReferentialConstraintRoleElement.cs
- DependencySource.cs
- CryptoHandle.cs
- CqlQuery.cs
- SqlDataSourceCommandEventArgs.cs
- Debug.cs
- IPAddressCollection.cs
- ProgressBarBrushConverter.cs
- TrackingExtract.cs
- DocumentCollection.cs
- ToolBarOverflowPanel.cs
- ScrollViewer.cs
- KnownTypesHelper.cs
- DecimalAverageAggregationOperator.cs
- BypassElement.cs
- XmlSchemaSimpleContentRestriction.cs
- LockCookie.cs
- DiagnosticTrace.cs
- Choices.cs
- XmlSerializerVersionAttribute.cs
- FilteredXmlReader.cs
- DiscoveryExceptionDictionary.cs
- ObfuscateAssemblyAttribute.cs
- DesignerCommandSet.cs
- ColorDialog.cs
- SqlLiftWhereClauses.cs
- ProcessModule.cs
- UnsafeNativeMethods.cs
- EdmSchemaError.cs
- Splitter.cs
- StaticResourceExtension.cs
- ColorMap.cs
- WebPartsPersonalization.cs
- PrintDialogException.cs
- TransformGroup.cs
- SendActivityEventArgs.cs
- FileRecordSequenceCompletedAsyncResult.cs
- ControlEvent.cs
- SystemResourceKey.cs
- ZipPackagePart.cs
- ProfileParameter.cs
- Grid.cs
- BamlLocalizableResourceKey.cs
- WindowsFormsDesignerOptionService.cs
- TargetFrameworkAttribute.cs
- HashMembershipCondition.cs
- ControlTemplate.cs
- SchemaElement.cs
- DPAPIProtectedConfigurationProvider.cs
- DataGridViewToolTip.cs
- SmtpTransport.cs
- PolicyLevel.cs
- EncoderFallback.cs
- ListViewItemEventArgs.cs
- SafeHandle.cs
- DefaultTraceListener.cs
- sqlcontext.cs
- ParallelEnumerableWrapper.cs
- ClientApiGenerator.cs
- _IPv6Address.cs
- XmlDomTextWriter.cs
- TemplateKeyConverter.cs
- OracleRowUpdatedEventArgs.cs
- DataGridViewLinkCell.cs
- ReadOnlyHierarchicalDataSource.cs
- ipaddressinformationcollection.cs
- ParameterCollection.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- TextServicesCompartment.cs
- OleDbRowUpdatingEvent.cs
- DataGridViewSortCompareEventArgs.cs
- DataTableReaderListener.cs
- ImageSource.cs
- Function.cs
- SystemResourceKey.cs
- TypeUsage.cs
- XmlReader.cs
- Symbol.cs
- TextEndOfSegment.cs
- MailWebEventProvider.cs
- BooleanFunctions.cs
- Viewport3DAutomationPeer.cs
- XmlValidatingReaderImpl.cs
- Regex.cs
- WebPartAuthorizationEventArgs.cs
- InputLanguageCollection.cs
- CatalogPart.cs
- ListControlActionList.cs
- AnnotationMap.cs
- ControlBuilder.cs
- DomainUpDown.cs
- DetailsViewInsertEventArgs.cs
- QueryFunctions.cs
- GridViewRowEventArgs.cs
- ButtonAutomationPeer.cs
- OracleBFile.cs
- StaticSiteMapProvider.cs
- GACIdentityPermission.cs
- ResXResourceReader.cs