Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....]/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
- Compiler.cs
- QueryReaderSettings.cs
- TextTrailingCharacterEllipsis.cs
- NumericExpr.cs
- ProcessModuleCollection.cs
- XmlTypeMapping.cs
- PasswordDeriveBytes.cs
- RectValueSerializer.cs
- PriorityQueue.cs
- SchemaComplexType.cs
- PostBackTrigger.cs
- XmlReflectionImporter.cs
- DbParameterCollectionHelper.cs
- WebBrowserEvent.cs
- SiteMapNode.cs
- CompatibleComparer.cs
- ProxyManager.cs
- ConstructorExpr.cs
- AppDomainProtocolHandler.cs
- ReflectPropertyDescriptor.cs
- RegexNode.cs
- BigInt.cs
- PnrpPeerResolverElement.cs
- DiffuseMaterial.cs
- MimeTextImporter.cs
- SafeBuffer.cs
- TextRange.cs
- Pair.cs
- Vars.cs
- DataViewSetting.cs
- DrawingBrush.cs
- RichTextBoxConstants.cs
- DispatcherHooks.cs
- FormViewUpdatedEventArgs.cs
- MachineKeyConverter.cs
- CursorEditor.cs
- ButtonBaseAutomationPeer.cs
- InfoCardUIAgent.cs
- TransactionScope.cs
- RequestQueue.cs
- StackSpiller.Bindings.cs
- ExpressionEvaluator.cs
- PriorityQueue.cs
- Command.cs
- HandlerFactoryWrapper.cs
- PassportPrincipal.cs
- ObjectReaderCompiler.cs
- BrowserCapabilitiesCodeGenerator.cs
- ErrorFormatterPage.cs
- DbProviderFactory.cs
- SQLInt64.cs
- BitmapScalingModeValidation.cs
- RotateTransform.cs
- DataGridViewComboBoxEditingControl.cs
- Stack.cs
- GroupBox.cs
- WebServicesInteroperability.cs
- RIPEMD160Managed.cs
- ListViewUpdateEventArgs.cs
- Thickness.cs
- RoleManagerSection.cs
- InternalPermissions.cs
- XamlFilter.cs
- ReadOnlyObservableCollection.cs
- OpCellTreeNode.cs
- NameValuePermission.cs
- FtpWebResponse.cs
- StylusCollection.cs
- AttributeData.cs
- DataColumnChangeEvent.cs
- Debug.cs
- TextEditorCopyPaste.cs
- BrowserCapabilitiesFactoryBase.cs
- PersonalizationDictionary.cs
- CatalogZoneBase.cs
- WebZone.cs
- SelectorItemAutomationPeer.cs
- WindowsTitleBar.cs
- ValidationHelper.cs
- CodeVariableReferenceExpression.cs
- PageSetupDialog.cs
- DispatchWrapper.cs
- NullReferenceException.cs
- ControlAdapter.cs
- OutputScopeManager.cs
- NodeFunctions.cs
- DBParameter.cs
- AttributeXamlType.cs
- ListBox.cs
- HuffCodec.cs
- HighlightComponent.cs
- ProgressBarAutomationPeer.cs
- TextServicesLoader.cs
- ImageMap.cs
- _AutoWebProxyScriptEngine.cs
- SynchronizationLockException.cs
- SQLSingle.cs
- StringUtil.cs
- Transform3DGroup.cs
- HwndMouseInputProvider.cs