Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Shared / MS / Internal / Generated / EdgeModeValidation.cs / 1 / 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
- NameScopePropertyAttribute.cs
- XmlSerializerSection.cs
- JournalNavigationScope.cs
- ToolboxComponentsCreatingEventArgs.cs
- PageCodeDomTreeGenerator.cs
- LogReserveAndAppendState.cs
- GeometryCombineModeValidation.cs
- XmlSiteMapProvider.cs
- IdleTimeoutMonitor.cs
- ConfigXmlSignificantWhitespace.cs
- DataBoundLiteralControl.cs
- IApplicationTrustManager.cs
- SqlCharStream.cs
- ClientApiGenerator.cs
- PhotoPrintingIntent.cs
- PageBuildProvider.cs
- SessionEndingEventArgs.cs
- DataControlImageButton.cs
- IntellisenseTextBox.cs
- MetadataUtil.cs
- IdentityReference.cs
- SecureConversationDriver.cs
- ObjectDataSource.cs
- DesignerResources.cs
- AtlasWeb.Designer.cs
- ConnectionManagementSection.cs
- MetadataPropertyCollection.cs
- SqlEnums.cs
- ViewStateModeByIdAttribute.cs
- SQLCharsStorage.cs
- Literal.cs
- ByteStack.cs
- FirstMatchCodeGroup.cs
- ExtenderProviderService.cs
- CompressEmulationStream.cs
- TextRunCacheImp.cs
- XMLUtil.cs
- SnapLine.cs
- ToolStripPanelRenderEventArgs.cs
- TreeViewItem.cs
- UITypeEditor.cs
- ItemPager.cs
- HotCommands.cs
- WindowsSolidBrush.cs
- MaskedTextProvider.cs
- WindowsAuthenticationEventArgs.cs
- XmlDeclaration.cs
- SmtpNtlmAuthenticationModule.cs
- FormViewPageEventArgs.cs
- FrameworkElement.cs
- InputEventArgs.cs
- CellParaClient.cs
- SkipStoryboardToFill.cs
- StaticExtensionConverter.cs
- ServiceMoniker.cs
- TreeWalkHelper.cs
- FrameworkElement.cs
- SchemaCollectionPreprocessor.cs
- ProcessHostServerConfig.cs
- SignatureDescription.cs
- SerializerProvider.cs
- sqlser.cs
- versioninfo.cs
- SessionParameter.cs
- XmlWriterTraceListener.cs
- XmlSchemaChoice.cs
- CheckBoxAutomationPeer.cs
- XmlResolver.cs
- TouchesOverProperty.cs
- DataGridViewRow.cs
- BinaryUtilClasses.cs
- CommonDialog.cs
- DecoderReplacementFallback.cs
- TriggerAction.cs
- EUCJPEncoding.cs
- embossbitmapeffect.cs
- Events.cs
- HitTestDrawingContextWalker.cs
- MethodCallTranslator.cs
- Int32AnimationUsingKeyFrames.cs
- StringWriter.cs
- TabItemAutomationPeer.cs
- Unit.cs
- DataControlExtensions.cs
- CustomAttribute.cs
- TypeInitializationException.cs
- FixedSOMPage.cs
- PointIndependentAnimationStorage.cs
- PrincipalPermission.cs
- MouseCaptureWithinProperty.cs
- LogEntryHeaderSerializer.cs
- ValidatingReaderNodeData.cs
- DependencyPropertyKind.cs
- SchemeSettingElement.cs
- HttpPostLocalhostServerProtocol.cs
- InstanceNameConverter.cs
- PropertyMetadata.cs
- EntityException.cs
- WSFederationHttpSecurity.cs
- ServiceNotStartedException.cs