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
- RegexWorker.cs
- Propagator.Evaluator.cs
- ChooseAction.cs
- QueryExpr.cs
- RequestCachePolicy.cs
- ListControl.cs
- MDIControlStrip.cs
- HtmlButton.cs
- CLSCompliantAttribute.cs
- MiniCustomAttributeInfo.cs
- Attachment.cs
- CanExecuteRoutedEventArgs.cs
- TimelineGroup.cs
- DesignTimeVisibleAttribute.cs
- DPTypeDescriptorContext.cs
- HiddenField.cs
- DropSource.cs
- DataServiceQueryException.cs
- XmlCharType.cs
- QilValidationVisitor.cs
- FontSource.cs
- ContentFileHelper.cs
- QilXmlWriter.cs
- ConnectionConsumerAttribute.cs
- XmlEncoding.cs
- KeyEventArgs.cs
- Privilege.cs
- ProviderUtil.cs
- WebPartActionVerb.cs
- CuspData.cs
- HttpCookie.cs
- LinkedList.cs
- CodeDomSerializerBase.cs
- ContentElement.cs
- XmlExpressionDumper.cs
- WindowsContainer.cs
- InkSerializer.cs
- DataGridViewCellMouseEventArgs.cs
- TableSectionStyle.cs
- DebugView.cs
- SamlSubject.cs
- KeyedCollection.cs
- CurrencyWrapper.cs
- ChannelSinkStacks.cs
- SQLDouble.cs
- TextTreeInsertUndoUnit.cs
- ObjectDataSourceView.cs
- DataSpaceManager.cs
- TagPrefixAttribute.cs
- FileLogRecordHeader.cs
- odbcmetadatacolumnnames.cs
- AddInStore.cs
- SemaphoreFullException.cs
- ObjectListGeneralPage.cs
- Window.cs
- _FtpDataStream.cs
- DispatcherFrame.cs
- DataGridViewColumn.cs
- DataGridRow.cs
- Enumerable.cs
- CommonObjectSecurity.cs
- SynchronizingStream.cs
- CalendarAutomationPeer.cs
- PageSettings.cs
- TrueReadOnlyCollection.cs
- SqlGatherProducedAliases.cs
- ProtocolElement.cs
- EntityContainerEntitySetDefiningQuery.cs
- CompilationSection.cs
- MemoryPressure.cs
- PageCodeDomTreeGenerator.cs
- DictationGrammar.cs
- NativeObjectSecurity.cs
- ListItemDetailViewAttribute.cs
- XmlSchemaInclude.cs
- XsdSchemaFileEditor.cs
- TypeBinaryExpression.cs
- RangeValidator.cs
- SequentialUshortCollection.cs
- PermissionSetTriple.cs
- AsyncResult.cs
- MSAAEventDispatcher.cs
- ButtonAutomationPeer.cs
- CodeTypeDeclarationCollection.cs
- UnmanagedMemoryStreamWrapper.cs
- FilterEventArgs.cs
- AdRotator.cs
- ColorDialog.cs
- XmlSignatureManifest.cs
- QuerySettings.cs
- ClientBuildManager.cs
- SystemInformation.cs
- DesignParameter.cs
- SectionXmlInfo.cs
- SegmentInfo.cs
- WindowsAuthenticationEventArgs.cs
- SpellerInterop.cs
- WebPartDisplayModeCancelEventArgs.cs
- HandlerFactoryCache.cs
- PointValueSerializer.cs