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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Column.cs
- SortExpressionBuilder.cs
- DelegateInArgument.cs
- WebBrowserNavigatingEventHandler.cs
- DropDownButton.cs
- Crypto.cs
- CachedBitmap.cs
- PropertyRecord.cs
- DbConnectionPoolGroupProviderInfo.cs
- ConnectionProviderAttribute.cs
- SmiEventSink.cs
- ModuleBuilder.cs
- RtType.cs
- TcpTransportElement.cs
- MembershipSection.cs
- Region.cs
- Bitmap.cs
- DataColumnChangeEvent.cs
- XmlDataSourceView.cs
- InstanceBehavior.cs
- System.Data_BID.cs
- DataBinding.cs
- XmlSchemas.cs
- SqlInternalConnectionSmi.cs
- HtmlLink.cs
- HtmlEmptyTagControlBuilder.cs
- PageHandlerFactory.cs
- versioninfo.cs
- SqlProvider.cs
- BlockCollection.cs
- LambdaCompiler.Statements.cs
- InvalidateEvent.cs
- VarInfo.cs
- DesignerLoader.cs
- WebPartUserCapability.cs
- ArrayListCollectionBase.cs
- PrimitiveType.cs
- Matrix.cs
- OleDbConnection.cs
- CodeDesigner.cs
- UserMapPath.cs
- IriParsingElement.cs
- TreeNode.cs
- TextReturnReader.cs
- DataErrorValidationRule.cs
- FixUpCollection.cs
- XdrBuilder.cs
- PackagingUtilities.cs
- StringValidatorAttribute.cs
- StateWorkerRequest.cs
- Control.cs
- SymbolUsageManager.cs
- MinimizableAttributeTypeConverter.cs
- URLMembershipCondition.cs
- FixedDocumentPaginator.cs
- DatePickerTextBox.cs
- MarshalByValueComponent.cs
- StreamHelper.cs
- TrustLevel.cs
- QilParameter.cs
- DbQueryCommandTree.cs
- ObjectDataSourceView.cs
- InplaceBitmapMetadataWriter.cs
- RangeValueProviderWrapper.cs
- FieldToken.cs
- XmlSortKeyAccumulator.cs
- WCFModelStrings.Designer.cs
- SqlCacheDependencySection.cs
- OverflowException.cs
- Pool.cs
- ToolStripItemClickedEventArgs.cs
- OleDbPropertySetGuid.cs
- Substitution.cs
- PackageRelationshipCollection.cs
- SqlClientWrapperSmiStream.cs
- SocketInformation.cs
- HttpTransportManager.cs
- MetadataArtifactLoaderFile.cs
- DataComponentNameHandler.cs
- DelegateTypeInfo.cs
- MsmqDiagnostics.cs
- LineInfo.cs
- RoutedEventValueSerializer.cs
- TextEditor.cs
- BamlLocalizableResource.cs
- DocumentOrderQuery.cs
- SizeAnimationUsingKeyFrames.cs
- IntSecurity.cs
- ListViewCommandEventArgs.cs
- OleDbConnection.cs
- ProvidePropertyAttribute.cs
- X509SecurityTokenParameters.cs
- DistributedTransactionPermission.cs
- MappedMetaModel.cs
- Int16AnimationUsingKeyFrames.cs
- Transactions.cs
- WindowsMenu.cs
- CqlLexer.cs
- TextOutput.cs
- NonBatchDirectoryCompiler.cs