Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ParenthesizePropertyNameAttribute.cs
- BindingsCollection.cs
- ContainerParagraph.cs
- MarkedHighlightComponent.cs
- RbTree.cs
- MenuItem.cs
- ToolStripContentPanelRenderEventArgs.cs
- CompiledQuery.cs
- MobileRedirect.cs
- SystemMulticastIPAddressInformation.cs
- ReliableChannelFactory.cs
- OutputWindow.cs
- SessionPageStatePersister.cs
- QueueSurrogate.cs
- ControlPropertyNameConverter.cs
- ContractCodeDomInfo.cs
- SystemColors.cs
- InstanceCollisionException.cs
- EditorZoneBase.cs
- GradientBrush.cs
- WebProxyScriptElement.cs
- PlaceHolder.cs
- SspiSecurityToken.cs
- FixedSOMTextRun.cs
- GenericRootAutomationPeer.cs
- StringBlob.cs
- RoleManagerEventArgs.cs
- PropertyEmitter.cs
- Script.cs
- DataKey.cs
- LineUtil.cs
- LogRecordSequence.cs
- GeneralTransform3DGroup.cs
- ContextMenuStrip.cs
- ResourcesBuildProvider.cs
- RuntimeConfig.cs
- DBAsyncResult.cs
- MachineSettingsSection.cs
- ColorAnimationBase.cs
- TimelineGroup.cs
- DataGridColumn.cs
- FormViewDeletedEventArgs.cs
- InternalBufferManager.cs
- FormsAuthenticationTicket.cs
- IsolatedStorage.cs
- CustomAttribute.cs
- RowCache.cs
- ConstrainedDataObject.cs
- SqlWebEventProvider.cs
- WeakReferenceEnumerator.cs
- CodeTypeOfExpression.cs
- CacheOutputQuery.cs
- ProjectionPlan.cs
- Mapping.cs
- HWStack.cs
- HashJoinQueryOperatorEnumerator.cs
- QueryRewriter.cs
- EdmScalarPropertyAttribute.cs
- NameValuePermission.cs
- NotificationContext.cs
- CodeTypeConstructor.cs
- OleStrCAMarshaler.cs
- httpapplicationstate.cs
- BaseComponentEditor.cs
- ByteStack.cs
- InfoCardX509Validator.cs
- CollectionAdapters.cs
- MissingMemberException.cs
- CharStorage.cs
- ZipIOBlockManager.cs
- Currency.cs
- coordinator.cs
- AmbiguousMatchException.cs
- XmlSchemaAnnotated.cs
- Int16AnimationBase.cs
- DecimalAverageAggregationOperator.cs
- OdbcCommand.cs
- AdapterUtil.cs
- ProcessHostServerConfig.cs
- Activator.cs
- TaiwanCalendar.cs
- StringDictionaryWithComparer.cs
- ExpressionConverter.cs
- SecureConversationVersion.cs
- SmiTypedGetterSetter.cs
- ScrollViewerAutomationPeer.cs
- StatusBar.cs
- ConfigDefinitionUpdates.cs
- CatalogZone.cs
- DetailsView.cs
- Stylesheet.cs
- OutputScopeManager.cs
- HuffmanTree.cs
- WebPartTransformerAttribute.cs
- OperationAbortedException.cs
- FragmentQueryProcessor.cs
- TypeTypeConverter.cs
- SqlTriggerAttribute.cs
- TailCallAnalyzer.cs
- ManagedWndProcTracker.cs