Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / FontStyles.cs / 1 / FontStyles.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: Predefined FontStyle structures that correspond to common font styles. // // History: // 01/25/2005 [....] - Created constants from FontStyle enum values. // //--------------------------------------------------------------------------- using System; using System.Globalization; namespace System.Windows { ////// FontStyles contains predefined font style structures for common font styles. /// public static class FontStyles { ////// Predefined font style : Normal. /// public static FontStyle Normal { get { return new FontStyle(0); } } ////// Predefined font style : Oblique. /// public static FontStyle Oblique { get { return new FontStyle(1); } } ////// Predefined font style : Italic. /// public static FontStyle Italic { get { return new FontStyle(2); } } internal static bool FontStyleStringToKnownStyle(string s, IFormatProvider provider, ref FontStyle fontStyle) { if (s.Equals("Normal", StringComparison.OrdinalIgnoreCase)) { fontStyle = FontStyles.Normal; return true; } if (s.Equals("Italic", StringComparison.OrdinalIgnoreCase)) { fontStyle = FontStyles.Italic; return true; } if (s.Equals("Oblique", StringComparison.OrdinalIgnoreCase)) { fontStyle = FontStyles.Oblique; return true; } return false; } } } // 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
- ReadOnlyDictionary.cs
- DataControlFieldCollection.cs
- COM2IPerPropertyBrowsingHandler.cs
- ProtocolsSection.cs
- XomlCompilerHelpers.cs
- MenuItemStyleCollection.cs
- LocalBuilder.cs
- SslStreamSecurityUpgradeProvider.cs
- OdbcDataReader.cs
- TextRangeEdit.cs
- UpDownEvent.cs
- ObjectIDGenerator.cs
- WSDualHttpSecurity.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- DataControlLinkButton.cs
- NestedContainer.cs
- BitArray.cs
- VirtualPath.cs
- RayMeshGeometry3DHitTestResult.cs
- PeerNameRecordCollection.cs
- SliderAutomationPeer.cs
- TransactionContextValidator.cs
- CodeDirectoryCompiler.cs
- EditorZone.cs
- ParameterRefs.cs
- ValidatorCompatibilityHelper.cs
- Page.cs
- Dictionary.cs
- PenThread.cs
- PropertyGeneratedEventArgs.cs
- TextEndOfParagraph.cs
- Inflater.cs
- _NTAuthentication.cs
- CodeEntryPointMethod.cs
- ViewStateChangedEventArgs.cs
- ReferentialConstraintRoleElement.cs
- OdbcPermission.cs
- WebBrowserDocumentCompletedEventHandler.cs
- TypeDefinition.cs
- FieldDescriptor.cs
- PublisherMembershipCondition.cs
- ProcessProtocolHandler.cs
- SafeMarshalContext.cs
- _KerberosClient.cs
- XmlFormatReaderGenerator.cs
- AmbientProperties.cs
- Propagator.Evaluator.cs
- DeleteMemberBinder.cs
- CancelRequestedRecord.cs
- TransformCryptoHandle.cs
- PeerName.cs
- XmlNamespaceMappingCollection.cs
- ModelItemCollectionImpl.cs
- FormatterConverter.cs
- _UriTypeConverter.cs
- webclient.cs
- Context.cs
- TreeNodeCollection.cs
- RedistVersionInfo.cs
- WebResourceUtil.cs
- Geometry.cs
- ConfigurationManager.cs
- Model3DGroup.cs
- XmlTypeAttribute.cs
- RuntimeResourceSet.cs
- NumberFormatter.cs
- SemanticAnalyzer.cs
- SQLBoolean.cs
- sqlser.cs
- RelationshipManager.cs
- SrgsDocument.cs
- DataGridViewColumnCollection.cs
- FormatPage.cs
- ServiceKnownTypeAttribute.cs
- XPathSelectionIterator.cs
- XmlEncoding.cs
- Permission.cs
- InstanceDataCollectionCollection.cs
- ClientSettingsStore.cs
- CodeExpressionStatement.cs
- Task.cs
- XhtmlBasicLiteralTextAdapter.cs
- IsolatedStorageFile.cs
- CheckedPointers.cs
- BaseCAMarshaler.cs
- Stroke2.cs
- ClockController.cs
- CombinedGeometry.cs
- GeometryCollection.cs
- TextElementCollectionHelper.cs
- DbProviderFactoriesConfigurationHandler.cs
- NativeRightsManagementAPIsStructures.cs
- TreeNodeSelectionProcessor.cs
- TemplateBindingExpression.cs
- XmlLinkedNode.cs
- FormsIdentity.cs
- AssemblyAssociatedContentFileAttribute.cs
- PtsHelper.cs
- HttpHandlerActionCollection.cs
- ToolStripDropDownClosingEventArgs.cs