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 / 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
- SafeEventHandle.cs
- XPathBuilder.cs
- FormatException.cs
- _FixedSizeReader.cs
- Blend.cs
- DynamicVirtualDiscoSearcher.cs
- C14NUtil.cs
- documentsequencetextcontainer.cs
- DragDropHelper.cs
- RemotingServices.cs
- WCFServiceClientProxyGenerator.cs
- RijndaelManaged.cs
- ImageClickEventArgs.cs
- TokenFactoryCredential.cs
- XmlCompatibilityReader.cs
- Binding.cs
- HierarchicalDataSourceControl.cs
- HttpRequestWrapper.cs
- DefaultAsyncDataDispatcher.cs
- CodeIterationStatement.cs
- DocumentSignatureManager.cs
- AxHost.cs
- DefaultProxySection.cs
- SynchronizationHandlesCodeDomSerializer.cs
- QueryResponse.cs
- SchemaNamespaceManager.cs
- SingleAnimationBase.cs
- GridViewEditEventArgs.cs
- TextElementCollectionHelper.cs
- ConnectionPoint.cs
- DataServiceHostWrapper.cs
- ProxyWebPartManagerDesigner.cs
- Literal.cs
- SiteMapNodeItem.cs
- LookupNode.cs
- MeshGeometry3D.cs
- InteropAutomationProvider.cs
- ApplicationServiceManager.cs
- WinEventTracker.cs
- IRCollection.cs
- SkinBuilder.cs
- nulltextnavigator.cs
- WebPartManagerInternals.cs
- ListenerElementsCollection.cs
- BitmapEffectInputConnector.cs
- NumericUpDown.cs
- ScrollContentPresenter.cs
- FileDetails.cs
- SqlPersonalizationProvider.cs
- SamlDelegatingWriter.cs
- HttpFileCollection.cs
- WebPartConnectionCollection.cs
- DataStreams.cs
- TreeNodeBindingCollection.cs
- StateMachineWorkflowInstance.cs
- LayoutManager.cs
- XmlNode.cs
- TrustLevel.cs
- ConfigurationFileMap.cs
- PositiveTimeSpanValidatorAttribute.cs
- Brushes.cs
- SourceFilter.cs
- ObjectSet.cs
- ReaderWriterLock.cs
- _HelperAsyncResults.cs
- TimelineCollection.cs
- MultipleViewProviderWrapper.cs
- Literal.cs
- ActivityCollectionMarkupSerializer.cs
- HtmlTextBoxAdapter.cs
- ProfileSettings.cs
- ToolStripContainerActionList.cs
- DataFormats.cs
- ButtonPopupAdapter.cs
- BinaryObjectWriter.cs
- GenericEnumConverter.cs
- DataGridViewCheckBoxCell.cs
- CustomBindingCollectionElement.cs
- SessionSwitchEventArgs.cs
- EntityClassGenerator.cs
- DataGridViewComboBoxEditingControl.cs
- WebEventCodes.cs
- StylusPointProperties.cs
- ReflectionUtil.cs
- AnimatedTypeHelpers.cs
- Encoding.cs
- Visitor.cs
- SystemThemeKey.cs
- Line.cs
- MailWriter.cs
- ExceptionHandlers.cs
- ProfilePropertyMetadata.cs
- DataGridColumnHeadersPresenter.cs
- EncryptedReference.cs
- ThemeableAttribute.cs
- SatelliteContractVersionAttribute.cs
- PerformanceCounterLib.cs
- MatrixUtil.cs
- WebPartsPersonalization.cs
- FormatterConverter.cs