Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / DashStyles.cs / 1 / DashStyles.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: This file contains the static class DashStyles. // DashStyles contains well known DashStyles implementations. // // History: // 11/15/2004: MichKa - Created it. // //--------------------------------------------------------------------------- using System; using System.Windows; namespace System.Windows.Media { ////// DashStyles - The DashStyles class is static, and contains properties for well known /// dash styles. /// public static class DashStyles { #region Public Static Properties ////// Solid - A solid DashArray (no dashes). /// public static DashStyle Solid { get { if (_solid == null) { DashStyle solid = new DashStyle(); solid.Freeze(); _solid = solid; } return _solid; } } ////// Dash - A DashArray which is 2 on, 2 off /// public static DashStyle Dash { get { if (_dash == null) { DashStyle style = new DashStyle(new double[] {2, 2}, 1); style.Freeze(); _dash = style; } return _dash; } } ////// Dot - A DashArray which is 0 on, 2 off /// public static DashStyle Dot { get { if (_dot == null) { DashStyle style = new DashStyle(new double[] {0, 2}, 0); style.Freeze(); _dot = style; } return _dot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off /// public static DashStyle DashDot { get { if (_dashDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2}, 1); style.Freeze(); _dashDot = style; } return _dashDot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off, 0 on, 2 off /// public static DashStyle DashDotDot { get { if (_dashDotDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2, 0, 2}, 1); style.Freeze(); _dashDotDot = style; } return _dashDotDot; } } #endregion Public Static Properties #region Private Static Fields private static DashStyle _solid; private static DashStyle _dash; private static DashStyle _dot; private static DashStyle _dashDot; private static DashStyle _dashDotDot; #endregion Private Static Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: This file contains the static class DashStyles. // DashStyles contains well known DashStyles implementations. // // History: // 11/15/2004: MichKa - Created it. // //--------------------------------------------------------------------------- using System; using System.Windows; namespace System.Windows.Media { ////// DashStyles - The DashStyles class is static, and contains properties for well known /// dash styles. /// public static class DashStyles { #region Public Static Properties ////// Solid - A solid DashArray (no dashes). /// public static DashStyle Solid { get { if (_solid == null) { DashStyle solid = new DashStyle(); solid.Freeze(); _solid = solid; } return _solid; } } ////// Dash - A DashArray which is 2 on, 2 off /// public static DashStyle Dash { get { if (_dash == null) { DashStyle style = new DashStyle(new double[] {2, 2}, 1); style.Freeze(); _dash = style; } return _dash; } } ////// Dot - A DashArray which is 0 on, 2 off /// public static DashStyle Dot { get { if (_dot == null) { DashStyle style = new DashStyle(new double[] {0, 2}, 0); style.Freeze(); _dot = style; } return _dot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off /// public static DashStyle DashDot { get { if (_dashDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2}, 1); style.Freeze(); _dashDot = style; } return _dashDot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off, 0 on, 2 off /// public static DashStyle DashDotDot { get { if (_dashDotDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2, 0, 2}, 1); style.Freeze(); _dashDotDot = style; } return _dashDotDot; } } #endregion Public Static Properties #region Private Static Fields private static DashStyle _solid; private static DashStyle _dash; private static DashStyle _dot; private static DashStyle _dashDot; private static DashStyle _dashDotDot; #endregion Private Static Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FixedSOMGroup.cs
- TraceLog.cs
- DESCryptoServiceProvider.cs
- SqlConnectionStringBuilder.cs
- QilInvokeLateBound.cs
- DataStreams.cs
- documentsequencetextcontainer.cs
- ProtocolImporter.cs
- BezierSegment.cs
- DataGridViewDesigner.cs
- WebConfigurationManager.cs
- M3DUtil.cs
- DesignerSerializationManager.cs
- RelationshipSet.cs
- IndexOutOfRangeException.cs
- OleDbRowUpdatedEvent.cs
- PermissionSetEnumerator.cs
- PrimaryKeyTypeConverter.cs
- WindowsIPAddress.cs
- BidirectionalDictionary.cs
- PropertyIDSet.cs
- DbConnectionHelper.cs
- HttpCachePolicy.cs
- Pkcs7Recipient.cs
- DataTableExtensions.cs
- __Error.cs
- Lasso.cs
- DataGridViewRowConverter.cs
- CallTemplateAction.cs
- PieceNameHelper.cs
- XamlFigureLengthSerializer.cs
- BaseValidatorDesigner.cs
- DataSetMappper.cs
- LogLogRecordHeader.cs
- ReadOnlyHierarchicalDataSource.cs
- DataServiceConfiguration.cs
- ExtensibleClassFactory.cs
- CompModSwitches.cs
- GradientBrush.cs
- GetLedgerEntryForRecipientRequest.cs
- ToolStripScrollButton.cs
- EntityDataSourceDesigner.cs
- DataGridRelationshipRow.cs
- AnnotationAuthorChangedEventArgs.cs
- SafeNativeMethods.cs
- RadialGradientBrush.cs
- XmlAggregates.cs
- BindUriHelper.cs
- RoleServiceManager.cs
- CustomExpression.cs
- SrgsToken.cs
- PathSegmentCollection.cs
- HttpClientProtocol.cs
- FlowNode.cs
- XmlSerializableServices.cs
- tabpagecollectioneditor.cs
- DatePickerTextBox.cs
- ApplyTemplatesAction.cs
- DependencyPropertyDescriptor.cs
- KeySplineConverter.cs
- _TransmitFileOverlappedAsyncResult.cs
- ContainerControl.cs
- Types.cs
- LinqDataSourceEditData.cs
- FileRegion.cs
- odbcmetadatacolumnnames.cs
- TargetException.cs
- ReflectPropertyDescriptor.cs
- SystemSounds.cs
- UpWmlMobileTextWriter.cs
- PreloadHost.cs
- StringConverter.cs
- MailAddressCollection.cs
- TemplateApplicationHelper.cs
- _AutoWebProxyScriptWrapper.cs
- ListView.cs
- DataListItemCollection.cs
- MembershipPasswordException.cs
- SafePEFileHandle.cs
- WpfWebRequestHelper.cs
- SynchronizationContext.cs
- DataRowExtensions.cs
- XmlCustomFormatter.cs
- XhtmlTextWriter.cs
- PrivacyNoticeElement.cs
- TextServicesManager.cs
- FigureHelper.cs
- WindowsToolbarAsMenu.cs
- UIServiceHelper.cs
- ComboBoxAutomationPeer.cs
- XmlSchemaDatatype.cs
- AccessDataSource.cs
- ProofTokenCryptoHandle.cs
- Aes.cs
- StyleConverter.cs
- InvalidCardException.cs
- DataGridViewColumn.cs
- XmlDictionaryWriter.cs
- OutputCacheEntry.cs
- HtmlInputPassword.cs