Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / PenLineCapValidation.cs / 1 / PenLineCapValidation.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 IsPenLineCapValid(object valueObject) { PenLineCap value = (PenLineCap) valueObject; return (value == PenLineCap.Flat) || (value == PenLineCap.Square) || (value == PenLineCap.Round) || (value == PenLineCap.Triangle); } } } // 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 IsPenLineCapValid(object valueObject) { PenLineCap value = (PenLineCap) valueObject; return (value == PenLineCap.Flat) || (value == PenLineCap.Square) || (value == PenLineCap.Round) || (value == PenLineCap.Triangle); } } } // 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
- EntityDataSourceReferenceGroup.cs
- Selection.cs
- Renderer.cs
- StringResourceManager.cs
- View.cs
- ChooseAction.cs
- QueryOutputWriter.cs
- ProfileInfo.cs
- externdll.cs
- DataGridColumnCollection.cs
- FastEncoder.cs
- CodeVariableReferenceExpression.cs
- LoadRetryStrategyFactory.cs
- ErrorStyle.cs
- StatusBarPanel.cs
- LocatorBase.cs
- SafeProcessHandle.cs
- FontUnitConverter.cs
- PriorityBindingExpression.cs
- System.Data_BID.cs
- XamlTemplateSerializer.cs
- StateWorkerRequest.cs
- SynchronizationScope.cs
- InheritanceContextHelper.cs
- ISessionStateStore.cs
- keycontainerpermission.cs
- TransformGroup.cs
- PackageDocument.cs
- SectionRecord.cs
- SerializationAttributes.cs
- HtmlDocument.cs
- CommentAction.cs
- OptimizedTemplateContentHelper.cs
- FormsAuthenticationConfiguration.cs
- Formatter.cs
- HelloMessageApril2005.cs
- ContentHostHelper.cs
- ResourceWriter.cs
- ImageInfo.cs
- VisemeEventArgs.cs
- SiteIdentityPermission.cs
- StringDictionary.cs
- HitTestResult.cs
- HttpModuleActionCollection.cs
- BitmapEffect.cs
- UserInitiatedNavigationPermission.cs
- WindowsGraphicsCacheManager.cs
- TileBrush.cs
- Literal.cs
- HitTestParameters3D.cs
- OdbcConnectionStringbuilder.cs
- FontNamesConverter.cs
- DesignerWebPartChrome.cs
- mil_commands.cs
- __Error.cs
- ServiceObjectContainer.cs
- Preprocessor.cs
- DataGrid.cs
- X509ChainPolicy.cs
- CustomError.cs
- DataGridViewColumnStateChangedEventArgs.cs
- StylusPointPropertyInfo.cs
- PerspectiveCamera.cs
- WaitingCursor.cs
- SiteMap.cs
- QilList.cs
- ScriptManagerProxy.cs
- FrameDimension.cs
- CodeTypeDeclarationCollection.cs
- IPAddress.cs
- RijndaelManagedTransform.cs
- FileBasedResourceGroveler.cs
- ArrayTypeMismatchException.cs
- InvokeWebService.cs
- AddDataControlFieldDialog.cs
- X509Certificate2.cs
- login.cs
- CalendarDateChangedEventArgs.cs
- WinFormsSecurity.cs
- securitymgrsite.cs
- CommentGlyph.cs
- CodeObject.cs
- EnumCodeDomSerializer.cs
- SmtpLoginAuthenticationModule.cs
- TemplateBuilder.cs
- QueryOutputWriter.cs
- JumpPath.cs
- ExtractorMetadata.cs
- ObjectQueryProvider.cs
- WindowsAuthenticationEventArgs.cs
- UnaryNode.cs
- CallbackHandler.cs
- NestPullup.cs
- DesignUtil.cs
- CodeSnippetCompileUnit.cs
- ItemMap.cs
- SqlBuilder.cs
- Select.cs
- HostedTransportConfigurationBase.cs
- CodeSnippetTypeMember.cs