Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / GradientSpreadMethodValidation.cs / 1305600 / 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
- DecimalKeyFrameCollection.cs
- MenuItemCollection.cs
- PackWebRequestFactory.cs
- mda.cs
- ResourcesBuildProvider.cs
- CallbackValidator.cs
- CompModSwitches.cs
- GifBitmapDecoder.cs
- webproxy.cs
- CustomWebEventKey.cs
- InputProcessorProfilesLoader.cs
- IPGlobalProperties.cs
- TryCatchDesigner.xaml.cs
- MasterPageParser.cs
- BasePropertyDescriptor.cs
- EventEntry.cs
- _BufferOffsetSize.cs
- FlowDocumentPage.cs
- GacUtil.cs
- TypefaceCollection.cs
- XmlSchemaAttribute.cs
- DocumentSchemaValidator.cs
- XmlSignatureProperties.cs
- OracleTransaction.cs
- XmlRawWriter.cs
- FrameworkContentElement.cs
- shaper.cs
- assemblycache.cs
- Compress.cs
- Icon.cs
- ContractCodeDomInfo.cs
- ComponentEditorForm.cs
- AuthenticodeSignatureInformation.cs
- AppSettingsExpressionBuilder.cs
- XmlSerializationWriter.cs
- Calendar.cs
- CodeIndexerExpression.cs
- FileDialog.cs
- KeyValuePair.cs
- TabPage.cs
- TextCompositionEventArgs.cs
- EditorAttribute.cs
- AuthorizationRuleCollection.cs
- CacheHelper.cs
- SqlResolver.cs
- DashStyles.cs
- AttributeConverter.cs
- UInt16Storage.cs
- ActiveDocumentEvent.cs
- ProcessActivityTreeOptions.cs
- XmlQueryOutput.cs
- RangeBase.cs
- ImageFormat.cs
- TypeElement.cs
- TextEndOfSegment.cs
- BuildManagerHost.cs
- ProcessHostServerConfig.cs
- Token.cs
- FileDialogCustomPlacesCollection.cs
- HwndSourceKeyboardInputSite.cs
- KnownIds.cs
- SoapEnumAttribute.cs
- ServiceHttpModule.cs
- WindowsGraphics2.cs
- IndentTextWriter.cs
- HttpServerVarsCollection.cs
- DataControlLinkButton.cs
- WebServiceClientProxyGenerator.cs
- _TimerThread.cs
- URLAttribute.cs
- ContentElementAutomationPeer.cs
- DesignerDataConnection.cs
- TrimSurroundingWhitespaceAttribute.cs
- PropertyDescriptorComparer.cs
- _TimerThread.cs
- SctClaimDictionary.cs
- CustomError.cs
- PathGeometry.cs
- XPathPatternBuilder.cs
- StringKeyFrameCollection.cs
- InheritanceRules.cs
- MouseActionConverter.cs
- RegisteredExpandoAttribute.cs
- ParameterModifier.cs
- UnsafeNativeMethods.cs
- SharedDp.cs
- InsufficientExecutionStackException.cs
- ListChangedEventArgs.cs
- FileSystemEventArgs.cs
- WebPartManager.cs
- PathFigureCollection.cs
- HttpProfileBase.cs
- WebPageTraceListener.cs
- RandomNumberGenerator.cs
- IList.cs
- Selection.cs
- RemotingSurrogateSelector.cs
- Solver.cs
- TextSelectionHelper.cs
- SqlTransaction.cs