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 / TextDecorationUnitValidation.cs / 1 / TextDecorationUnitValidation.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 { 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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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 { 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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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
- SelectionItemPattern.cs
- XmlSchemaAnnotated.cs
- ConfigDefinitionUpdates.cs
- Rotation3DAnimationBase.cs
- SkewTransform.cs
- WindowsBrush.cs
- RadioButton.cs
- InputMethodStateTypeInfo.cs
- DataBoundControlAdapter.cs
- Model3D.cs
- EventTrigger.cs
- AnimationStorage.cs
- XamlStream.cs
- Stylesheet.cs
- RepeaterItemEventArgs.cs
- NetSectionGroup.cs
- ToolStripContainerActionList.cs
- UpdateException.cs
- DataGridTextBox.cs
- LocatorGroup.cs
- ImplicitInputBrush.cs
- Win32.cs
- DelayedRegex.cs
- TypedDataSourceCodeGenerator.cs
- DescendentsWalker.cs
- CompareInfo.cs
- ScriptingSectionGroup.cs
- TypeRestriction.cs
- MultiBinding.cs
- ImageAnimator.cs
- Pair.cs
- DataControlPagerLinkButton.cs
- DataObjectFieldAttribute.cs
- ListSourceHelper.cs
- CodeConstructor.cs
- RelationshipConverter.cs
- ProcessThreadCollection.cs
- ConfigurationSchemaErrors.cs
- ProcessThreadDesigner.cs
- ArrayHelper.cs
- RuleDefinitions.cs
- ApplicationException.cs
- GZipUtils.cs
- DesignerAdapterAttribute.cs
- DataColumnPropertyDescriptor.cs
- LongCountAggregationOperator.cs
- SqlEnums.cs
- OdbcCommand.cs
- MarkedHighlightComponent.cs
- AuthorizationRule.cs
- PersonalizationProviderHelper.cs
- BuildDependencySet.cs
- EncoderReplacementFallback.cs
- EventMap.cs
- NumberSubstitution.cs
- ProfileInfo.cs
- XmlFormatExtensionPrefixAttribute.cs
- SystemIcmpV6Statistics.cs
- ProcessingInstructionAction.cs
- Highlights.cs
- DefaultPrintController.cs
- ProviderBase.cs
- RadioButtonFlatAdapter.cs
- Bold.cs
- PenLineJoinValidation.cs
- SafeFileMappingHandle.cs
- AnnotationComponentChooser.cs
- XmlNodeWriter.cs
- KeyInfo.cs
- Scene3D.cs
- AuthStoreRoleProvider.cs
- SystemTcpConnection.cs
- HwndSourceKeyboardInputSite.cs
- FilteredXmlReader.cs
- DocumentOrderQuery.cs
- MemoryFailPoint.cs
- ReadOnlyDataSourceView.cs
- ClientScriptManager.cs
- SqlIdentifier.cs
- FontFamilyConverter.cs
- ValidatingReaderNodeData.cs
- TextPattern.cs
- TemplateBamlRecordReader.cs
- TextBreakpoint.cs
- ButtonPopupAdapter.cs
- ContextMenuStrip.cs
- CodeMemberEvent.cs
- VectorCollection.cs
- AuthenticationException.cs
- ProjectionPruner.cs
- Inflater.cs
- XmlAnyAttributeAttribute.cs
- ReadOnlyMetadataCollection.cs
- DialogResultConverter.cs
- ClockController.cs
- Point.cs
- Configuration.cs
- ThicknessConverter.cs
- EntityContainerRelationshipSetEnd.cs
- SystemIcmpV4Statistics.cs