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 / PenLineJoinValidation.cs / 1 / PenLineJoinValidation.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 IsPenLineJoinValid(object valueObject)
{
PenLineJoin value = (PenLineJoin) valueObject;
return (value == PenLineJoin.Miter) ||
(value == PenLineJoin.Bevel) ||
(value == PenLineJoin.Round);
}
}
}
// 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 IsPenLineJoinValid(object valueObject)
{
PenLineJoin value = (PenLineJoin) valueObject;
return (value == PenLineJoin.Miter) ||
(value == PenLineJoin.Bevel) ||
(value == PenLineJoin.Round);
}
}
}
// 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
- Resources.Designer.cs
- NameObjectCollectionBase.cs
- FtpCachePolicyElement.cs
- CombinedGeometry.cs
- HideDisabledControlAdapter.cs
- KeyPressEvent.cs
- ServiceDefaults.cs
- PropVariant.cs
- DetailsViewPagerRow.cs
- FontClient.cs
- DateTimeSerializationSection.cs
- ListView.cs
- smtppermission.cs
- HtmlInputReset.cs
- _NegoState.cs
- RoutedEvent.cs
- NullableBoolConverter.cs
- TextDecorationLocationValidation.cs
- _BasicClient.cs
- ArrangedElementCollection.cs
- ResourcesChangeInfo.cs
- NetWebProxyFinder.cs
- PipelineDeploymentState.cs
- TakeQueryOptionExpression.cs
- PeerEndPoint.cs
- Visual3DCollection.cs
- SelectedCellsChangedEventArgs.cs
- MethodCallTranslator.cs
- SliderAutomationPeer.cs
- PrimitiveXmlSerializers.cs
- WindowsSolidBrush.cs
- XPathAncestorQuery.cs
- Timer.cs
- PropertyChangedEventManager.cs
- ContainsSearchOperator.cs
- isolationinterop.cs
- Tuple.cs
- BindingCollection.cs
- HtmlShim.cs
- TextDecoration.cs
- RoleServiceManager.cs
- DataException.cs
- FacetDescriptionElement.cs
- TextRangeEditLists.cs
- altserialization.cs
- ExcludeFromCodeCoverageAttribute.cs
- ServiceSecurityAuditElement.cs
- VisualProxy.cs
- DiscoveryExceptionDictionary.cs
- WebPartEditorApplyVerb.cs
- ComponentResourceKey.cs
- DataGridViewCellPaintingEventArgs.cs
- DataGridViewColumnDesigner.cs
- PrivilegeNotHeldException.cs
- XmlSchemaSimpleTypeList.cs
- DictionarySectionHandler.cs
- AssociationType.cs
- AspNetCompatibilityRequirementsAttribute.cs
- ListViewItem.cs
- ManipulationVelocities.cs
- GeometryConverter.cs
- DictionaryEntry.cs
- GuidelineSet.cs
- FileLoadException.cs
- TypeSystem.cs
- GeneralTransform3DGroup.cs
- BamlStream.cs
- GuidConverter.cs
- ObservableDictionary.cs
- DataGridRowEventArgs.cs
- RegexMatch.cs
- StringDictionaryWithComparer.cs
- TextContainerChangeEventArgs.cs
- LayoutExceptionEventArgs.cs
- AsynchronousChannel.cs
- FtpCachePolicyElement.cs
- StreamGeometry.cs
- SerializationInfo.cs
- ServiceDeploymentInfo.cs
- ObjectSet.cs
- InheritanceContextHelper.cs
- MappingModelBuildProvider.cs
- CheckedListBox.cs
- VersionedStream.cs
- SymDocumentType.cs
- MimeXmlImporter.cs
- _NegoState.cs
- HashCryptoHandle.cs
- NetSectionGroup.cs
- ListItemParagraph.cs
- WebBrowserProgressChangedEventHandler.cs
- CommandValueSerializer.cs
- SocketAddress.cs
- XsltConvert.cs
- HandlerWithFactory.cs
- SqlUserDefinedAggregateAttribute.cs
- SaveFileDialog.cs
- CrossAppDomainChannel.cs
- CreateRefExpr.cs
- FileCodeGroup.cs