Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- HwndHost.cs
- WebPartRestoreVerb.cs
- ImageAutomationPeer.cs
- Pts.cs
- NetCodeGroup.cs
- GridItemPattern.cs
- DependencyPropertyAttribute.cs
- RowUpdatingEventArgs.cs
- ObjectDataSourceMethodEditor.cs
- StandardCommands.cs
- ObjectToken.cs
- FlowLayoutSettings.cs
- EmbossBitmapEffect.cs
- Point3D.cs
- WebPartTransformer.cs
- _ProxyChain.cs
- ProfileInfo.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ConversionContext.cs
- XmlLanguageConverter.cs
- Exceptions.cs
- XmlSchemaValidationException.cs
- TextParagraph.cs
- SoapHeaders.cs
- SystemIcmpV4Statistics.cs
- NullableBoolConverter.cs
- UserControlCodeDomTreeGenerator.cs
- SecurityTokenRequirement.cs
- PropertyGridView.cs
- PageTheme.cs
- HtmlValidatorAdapter.cs
- LinearGradientBrush.cs
- SoapElementAttribute.cs
- FileDialogCustomPlace.cs
- Column.cs
- EventData.cs
- XmlTextReader.cs
- DataGridViewLinkColumn.cs
- ReadWriteSpinLock.cs
- DtdParser.cs
- DataGridViewLinkColumn.cs
- AsyncContentLoadedEventArgs.cs
- RelatedView.cs
- ImageBrush.cs
- SharedStatics.cs
- WorkflowDefinitionDispenser.cs
- SectionInput.cs
- SqlResolver.cs
- ConnectionPointCookie.cs
- AddingNewEventArgs.cs
- CounterSample.cs
- XmlnsDefinitionAttribute.cs
- DataSourceProvider.cs
- MemberHolder.cs
- NativeMethods.cs
- TileBrush.cs
- Int64Storage.cs
- Tokenizer.cs
- Brush.cs
- RegistrySecurity.cs
- CheckBoxList.cs
- Ray3DHitTestResult.cs
- ZipIOFileItemStream.cs
- RootBrowserWindowAutomationPeer.cs
- Stacktrace.cs
- Win32.cs
- PackageRelationshipSelector.cs
- BuildDependencySet.cs
- BufferedStream.cs
- NavigationWindowAutomationPeer.cs
- ForwardPositionQuery.cs
- SubstitutionList.cs
- DataGridCell.cs
- ReachPageContentCollectionSerializer.cs
- ReadOnlyCollectionBase.cs
- ViewManager.cs
- Delay.cs
- SHA256.cs
- XmlSchemaSimpleTypeList.cs
- SafeHandle.cs
- CollaborationHelperFunctions.cs
- HMACMD5.cs
- SpellerInterop.cs
- VideoDrawing.cs
- RoutedCommand.cs
- DefaultValueTypeConverter.cs
- RightsManagementPermission.cs
- MSHTMLHost.cs
- DataServiceException.cs
- Error.cs
- WebPartConnectionsConfigureVerb.cs
- FixedPage.cs
- ItemContainerProviderWrapper.cs
- HtmlFormWrapper.cs
- XmlWriterSettings.cs
- InstanceData.cs
- Win32Interop.cs
- CursorConverter.cs
- Zone.cs
- DocumentationServerProtocol.cs