Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / PenLineCapValidation.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataBoundLiteralControl.cs
- InputLangChangeRequestEvent.cs
- CellIdBoolean.cs
- SerializationException.cs
- coordinatorscratchpad.cs
- SqlDataSourceQueryEditor.cs
- HashSetEqualityComparer.cs
- StopStoryboard.cs
- Button.cs
- SessionStateUtil.cs
- ConditionalBranch.cs
- UserPersonalizationStateInfo.cs
- DataGridAddNewRow.cs
- MenuAdapter.cs
- EtwTrackingBehavior.cs
- ListViewItem.cs
- WebColorConverter.cs
- TagPrefixAttribute.cs
- ProfessionalColors.cs
- ISCIIEncoding.cs
- PersonalizationEntry.cs
- ApplicationContext.cs
- Cursors.cs
- WriteFileContext.cs
- WebPartDeleteVerb.cs
- COM2PropertyDescriptor.cs
- BindingExpression.cs
- SpecialTypeDataContract.cs
- CreateCardRequest.cs
- TableProviderWrapper.cs
- SimpleWebHandlerParser.cs
- DataViewSetting.cs
- TimerElapsedEvenArgs.cs
- TableLayoutSettings.cs
- InnerItemCollectionView.cs
- UpdateRecord.cs
- BulletedListEventArgs.cs
- SafeTokenHandle.cs
- XmlEncodedRawTextWriter.cs
- KeyboardDevice.cs
- ViewUtilities.cs
- DependencyPropertyAttribute.cs
- AccessedThroughPropertyAttribute.cs
- KoreanLunisolarCalendar.cs
- Highlights.cs
- MetadataItemEmitter.cs
- ListViewGroupItemCollection.cs
- UrlPropertyAttribute.cs
- UserInitiatedRoutedEventPermission.cs
- ParameterToken.cs
- ToggleButtonAutomationPeer.cs
- LostFocusEventManager.cs
- counter.cs
- PageCodeDomTreeGenerator.cs
- ActiveXSite.cs
- ClipboardProcessor.cs
- ToolStripDropDownItem.cs
- NavigationProgressEventArgs.cs
- XmlCDATASection.cs
- AlternationConverter.cs
- HostingEnvironmentWrapper.cs
- CSharpCodeProvider.cs
- DescendentsWalker.cs
- Rect.cs
- OracleLob.cs
- recordstate.cs
- CompensationDesigner.cs
- ImageMap.cs
- SqlConnection.cs
- IntPtr.cs
- ThreadPool.cs
- ObjectStorage.cs
- OutgoingWebResponseContext.cs
- ColorBlend.cs
- EventlogProvider.cs
- DataServiceResponse.cs
- TreeView.cs
- TabRenderer.cs
- RectAnimationUsingKeyFrames.cs
- EntityTransaction.cs
- DataSetFieldSchema.cs
- XamlParser.cs
- SEHException.cs
- ProcessHost.cs
- RawStylusActions.cs
- Pkcs7Signer.cs
- OdbcStatementHandle.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DateTime.cs
- Size3D.cs
- mda.cs
- TemplateControlParser.cs
- DataGridPagerStyle.cs
- Attributes.cs
- PrefixQName.cs
- CatalogZoneAutoFormat.cs
- SBCSCodePageEncoding.cs
- UnsafeNativeMethods.cs
- OperationResponse.cs
- StrokeNode.cs