Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Misc / ImageListUtils.cs / 1 / 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
- GreaterThanOrEqual.cs
- TrackingServices.cs
- OdbcCommandBuilder.cs
- SqlDataRecord.cs
- Convert.cs
- NavigationEventArgs.cs
- CombinedTcpChannel.cs
- StrokeNodeData.cs
- TextTreeExtractElementUndoUnit.cs
- ControlHelper.cs
- RouteCollection.cs
- ReadOnlyObservableCollection.cs
- ColorInterpolationModeValidation.cs
- StylusPointPropertyInfo.cs
- CallTemplateAction.cs
- RelationshipManager.cs
- ReferenceConverter.cs
- FixedSOMTableRow.cs
- PropertyGridEditorPart.cs
- LabelEditEvent.cs
- LinqDataSourceValidationException.cs
- VideoDrawing.cs
- ProfilePropertyNameValidator.cs
- NativeMethods.cs
- XslTransform.cs
- ActionItem.cs
- DateTimeUtil.cs
- PathStreamGeometryContext.cs
- XsdValidatingReader.cs
- EnumType.cs
- validationstate.cs
- VBIdentifierNameEditor.cs
- BroadcastEventHelper.cs
- SymmetricCryptoHandle.cs
- ComEventsSink.cs
- OdbcEnvironmentHandle.cs
- Button.cs
- DecimalStorage.cs
- ListDesigner.cs
- QuotedPrintableStream.cs
- CDSsyncETWBCLProvider.cs
- OSFeature.cs
- PrintControllerWithStatusDialog.cs
- httpstaticobjectscollection.cs
- HtmlTable.cs
- WebPartConnectionsConnectVerb.cs
- Knowncolors.cs
- RowSpanVector.cs
- FixedSOMFixedBlock.cs
- GACIdentityPermission.cs
- DependencyPropertyConverter.cs
- ImageAutomationPeer.cs
- ObjectPropertyMapping.cs
- altserialization.cs
- GeneralTransform3DCollection.cs
- SoapBinding.cs
- OperatorExpressions.cs
- SafeFileHandle.cs
- ReadOnlyDataSourceView.cs
- RegexReplacement.cs
- MultiSelectRootGridEntry.cs
- PeerNameResolver.cs
- CriticalExceptions.cs
- JsonWriterDelegator.cs
- ToolStripSeparatorRenderEventArgs.cs
- NetworkStream.cs
- Codec.cs
- StaticExtensionConverter.cs
- Misc.cs
- SubMenuStyle.cs
- BindingGroup.cs
- Literal.cs
- StorageScalarPropertyMapping.cs
- XmlAggregates.cs
- ResourceAttributes.cs
- DurableInstancingOptions.cs
- DrawingImage.cs
- COM2PropertyDescriptor.cs
- ReadingWritingEntityEventArgs.cs
- XMLUtil.cs
- Delegate.cs
- SoapMessage.cs
- TransactionalPackage.cs
- ImageAutomationPeer.cs
- DataColumnCollection.cs
- QilBinary.cs
- CatalogPart.cs
- SynchronizationContextHelper.cs
- DeobfuscatingStream.cs
- PermissionSetEnumerator.cs
- DataServiceRequestException.cs
- OrderedHashRepartitionEnumerator.cs
- ETagAttribute.cs
- SignerInfo.cs
- LayoutTable.cs
- VectorCollection.cs
- EditorServiceContext.cs
- LocalBuilder.cs
- WebPartActionVerb.cs
- ConfigurationValidatorBase.cs