Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / GradientSpreadMethodValidation.cs / 1 / GradientSpreadMethodValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsGradientSpreadMethodValid(object valueObject) { GradientSpreadMethod value = (GradientSpreadMethod) valueObject; return (value == GradientSpreadMethod.Pad) || (value == GradientSpreadMethod.Reflect) || (value == GradientSpreadMethod.Repeat); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsGradientSpreadMethodValid(object valueObject) { GradientSpreadMethod value = (GradientSpreadMethod) valueObject; return (value == GradientSpreadMethod.Pad) || (value == GradientSpreadMethod.Reflect) || (value == GradientSpreadMethod.Repeat); } } } // 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
- _SslSessionsCache.cs
- CachedPathData.cs
- SessionStateModule.cs
- ProxyAttribute.cs
- AsymmetricKeyExchangeFormatter.cs
- CodeStatementCollection.cs
- Slider.cs
- FactoryGenerator.cs
- NotImplementedException.cs
- Material.cs
- MdbDataFileEditor.cs
- UnsafeNativeMethods.cs
- XmlDataSourceView.cs
- XmlTypeAttribute.cs
- VoiceObjectToken.cs
- MarkupCompilePass2.cs
- TemplateKey.cs
- ReadOnlyActivityGlyph.cs
- CommonDialog.cs
- Animatable.cs
- StrokeCollection.cs
- WebPartZoneBase.cs
- ContextMenuService.cs
- PKCS1MaskGenerationMethod.cs
- PackWebRequestFactory.cs
- WindowsTreeView.cs
- LayoutEditorPart.cs
- PeerSecurityHelpers.cs
- TimeoutValidationAttribute.cs
- DataGridViewColumnHeaderCell.cs
- BooleanExpr.cs
- WebConfigurationHost.cs
- Normalizer.cs
- QuotedPrintableStream.cs
- SignatureGenerator.cs
- DataSourceSerializationException.cs
- GenericRootAutomationPeer.cs
- ChangeNode.cs
- LookupNode.cs
- Drawing.cs
- KeyEventArgs.cs
- TypeGeneratedEventArgs.cs
- Imaging.cs
- RuntimeEnvironment.cs
- Mutex.cs
- Mapping.cs
- DockProviderWrapper.cs
- DataGridViewRowPrePaintEventArgs.cs
- RoleBoolean.cs
- EllipseGeometry.cs
- KnowledgeBase.cs
- ObjectTag.cs
- RuntimeConfigurationRecord.cs
- HtmlTitle.cs
- CommandHelper.cs
- Menu.cs
- SerializationStore.cs
- GridViewCommandEventArgs.cs
- PingOptions.cs
- UsernameTokenFactoryCredential.cs
- ListViewDataItem.cs
- FactoryMaker.cs
- messageonlyhwndwrapper.cs
- DataGridColumn.cs
- TextTreeFixupNode.cs
- StructuralObject.cs
- FontCollection.cs
- WebPartMenu.cs
- PngBitmapDecoder.cs
- SqlTriggerAttribute.cs
- WebPartDisplayMode.cs
- _CacheStreams.cs
- PersonalizationProvider.cs
- ComponentDispatcherThread.cs
- UriTemplateEquivalenceComparer.cs
- DataGridViewDataErrorEventArgs.cs
- TableLayout.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TextBounds.cs
- XmlReaderSettings.cs
- XmlUtil.cs
- EventPrivateKey.cs
- QilInvoke.cs
- EmptyImpersonationContext.cs
- Selection.cs
- GeometryHitTestParameters.cs
- CodeMethodReturnStatement.cs
- PageSettings.cs
- TextEmbeddedObject.cs
- _HeaderInfoTable.cs
- PersonalizationProviderCollection.cs
- MinimizableAttributeTypeConverter.cs
- OracleString.cs
- TriState.cs
- UInt32Storage.cs
- SecurityContext.cs
- XPathNodeHelper.cs
- BitmapEffectGroup.cs
- MsmqReceiveParameters.cs
- DataGridColumnCollection.cs