Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / EdgeModeValidation.cs / 1305600 / EdgeModeValidation.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 IsEdgeModeValid(object valueObject) { EdgeMode value = (EdgeMode) valueObject; return (value == EdgeMode.Unspecified) || (value == EdgeMode.Aliased); } } } // 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 IsEdgeModeValid(object valueObject) { EdgeMode value = (EdgeMode) valueObject; return (value == EdgeMode.Unspecified) || (value == EdgeMode.Aliased); } } } // 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
- DbBuffer.cs
- MatrixTransform3D.cs
- DataGridRowClipboardEventArgs.cs
- parserscommon.cs
- ImmutablePropertyDescriptorGridEntry.cs
- TextBoxAutomationPeer.cs
- CollectionBase.cs
- DocumentReferenceCollection.cs
- NativeMethods.cs
- ComponentRenameEvent.cs
- CrossAppDomainChannel.cs
- TreeViewItem.cs
- DateTimePicker.cs
- Manipulation.cs
- FileLevelControlBuilderAttribute.cs
- CategoryNameCollection.cs
- log.cs
- RecipientInfo.cs
- ActionMessageFilterTable.cs
- TextRangeProviderWrapper.cs
- LinkedResourceCollection.cs
- SuppressMessageAttribute.cs
- TabControl.cs
- Win32.cs
- CompilerScopeManager.cs
- SqlAliaser.cs
- WeakEventTable.cs
- InvalidTimeZoneException.cs
- ImpersonateTokenRef.cs
- InvokeMethodActivityDesigner.cs
- EventSinkActivity.cs
- CompiledIdentityConstraint.cs
- LayoutDump.cs
- OleDbInfoMessageEvent.cs
- AppDomain.cs
- __TransparentProxy.cs
- IIS7UserPrincipal.cs
- SafeProcessHandle.cs
- GeneralTransform3D.cs
- TriggerBase.cs
- GlyphRun.cs
- CustomAttributeSerializer.cs
- MethodImplAttribute.cs
- PropertyTab.cs
- StoreAnnotationsMap.cs
- OleServicesContext.cs
- PropertyItemInternal.cs
- HtmlValidatorAdapter.cs
- URLString.cs
- ReadOnlyHierarchicalDataSourceView.cs
- XmlSignatureManifest.cs
- ImageFormat.cs
- SubstitutionList.cs
- PropertyDescriptorGridEntry.cs
- Canvas.cs
- XPathMessageFilterElementCollection.cs
- Internal.cs
- FileDialogCustomPlace.cs
- DataGridCommandEventArgs.cs
- BuildProvider.cs
- XPathNavigatorException.cs
- ControlBuilderAttribute.cs
- DataSetUtil.cs
- PageStatePersister.cs
- HybridCollection.cs
- ProxyElement.cs
- ProfileGroupSettingsCollection.cs
- AutomationPeer.cs
- ExpressionsCollectionEditor.cs
- HijriCalendar.cs
- VectorAnimation.cs
- GraphicsPathIterator.cs
- WebPartDisplayMode.cs
- WebPartActionVerb.cs
- SiteMapNodeCollection.cs
- exports.cs
- SoapParser.cs
- Misc.cs
- ThreadStartException.cs
- UInt16.cs
- OutOfProcStateClientManager.cs
- GeneralTransform.cs
- Helper.cs
- ClientScriptManager.cs
- DbDataAdapter.cs
- Geometry.cs
- ConfigXmlDocument.cs
- ListCommandEventArgs.cs
- InstanceOwner.cs
- QilStrConcat.cs
- TreeNode.cs
- BrowserCapabilitiesFactory.cs
- FormsAuthentication.cs
- DiscreteKeyFrames.cs
- PointCollectionValueSerializer.cs
- AutomationPattern.cs
- DynamicDataRouteHandler.cs
- ComEventsHelper.cs
- InternalBufferOverflowException.cs
- ConfigurationFileMap.cs