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
- TextStore.cs
- Int16Converter.cs
- Control.cs
- EntityClassGenerator.cs
- EmptyEnumerator.cs
- DomainUpDown.cs
- BindingCollection.cs
- AssociationSet.cs
- ExceptionList.cs
- IntegerFacetDescriptionElement.cs
- SQLByte.cs
- TransactionInterop.cs
- TableParaClient.cs
- OletxCommittableTransaction.cs
- DataGridViewDesigner.cs
- ProxyGenerationError.cs
- TypeToArgumentTypeConverter.cs
- CellLabel.cs
- WebBrowserNavigatingEventHandler.cs
- ContainerFilterService.cs
- SerializableReadOnlyDictionary.cs
- DocComment.cs
- BasicHttpSecurity.cs
- CompositeCollectionView.cs
- PersonalizableTypeEntry.cs
- MetadataCache.cs
- ArraySet.cs
- ExportOptions.cs
- PanelStyle.cs
- TemplateContentLoader.cs
- PopOutPanel.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- ParseElement.cs
- XmlName.cs
- XmlDigitalSignatureProcessor.cs
- TabItem.cs
- AttributeAction.cs
- _BaseOverlappedAsyncResult.cs
- TimeoutException.cs
- ImageList.cs
- TemplateKeyConverter.cs
- IMembershipProvider.cs
- HtmlInputFile.cs
- FormsAuthenticationTicket.cs
- DBCommandBuilder.cs
- SubtreeProcessor.cs
- HyperLinkField.cs
- HtmlInputImage.cs
- NetworkInterface.cs
- ServiceBehaviorElementCollection.cs
- DecoderReplacementFallback.cs
- AnonymousIdentificationModule.cs
- MediaPlayer.cs
- TableLayoutStyleCollection.cs
- XmlComment.cs
- SystemDiagnosticsSection.cs
- HandleRef.cs
- AdPostCacheSubstitution.cs
- RequestCachePolicyConverter.cs
- DbMetaDataColumnNames.cs
- WindowsAuthenticationEventArgs.cs
- TimeManager.cs
- BindUriHelper.cs
- XmlSchemaInclude.cs
- ProcessModuleCollection.cs
- PanelStyle.cs
- SemanticBasicElement.cs
- AdapterDictionary.cs
- SqlNotificationRequest.cs
- SynchronizingStream.cs
- GeneralTransform.cs
- ConfigPathUtility.cs
- EncoderBestFitFallback.cs
- ManagementInstaller.cs
- SecurityDescriptor.cs
- PriorityQueue.cs
- RouteParametersHelper.cs
- SchemaHelper.cs
- ToolboxCategory.cs
- EventProperty.cs
- DataServiceQueryContinuation.cs
- GlyphElement.cs
- CheckedPointers.cs
- PageStatePersister.cs
- CompilerState.cs
- GlyphInfoList.cs
- TextParagraphView.cs
- XmlExtensionFunction.cs
- ThumbAutomationPeer.cs
- Mappings.cs
- InputDevice.cs
- DateTimeConverter2.cs
- ObjectQueryState.cs
- VisualStyleRenderer.cs
- _OSSOCK.cs
- BrushMappingModeValidation.cs
- AttributeProviderAttribute.cs
- RegisterInfo.cs
- WebPartVerbsEventArgs.cs
- SqlDependencyUtils.cs