Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // 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
- ContentPlaceHolder.cs
- SplineQuaternionKeyFrame.cs
- GlobalAllocSafeHandle.cs
- MatrixTransform.cs
- ErrorInfoXmlDocument.cs
- SharedStatics.cs
- EdmComplexPropertyAttribute.cs
- ModelUIElement3D.cs
- cookiecollection.cs
- IgnoreFileBuildProvider.cs
- GC.cs
- PolyQuadraticBezierSegment.cs
- CaseInsensitiveComparer.cs
- GridView.cs
- FastEncoderWindow.cs
- SiteMapNodeCollection.cs
- TextServicesLoader.cs
- DataSourceXmlClassAttribute.cs
- ClientScriptItemCollection.cs
- Resources.Designer.cs
- DataControlFieldHeaderCell.cs
- _TLSstream.cs
- DataSourceView.cs
- XamlReaderHelper.cs
- ShutDownListener.cs
- UnsafePeerToPeerMethods.cs
- UdpRetransmissionSettings.cs
- followingsibling.cs
- TextDecorationUnitValidation.cs
- PenThreadWorker.cs
- SerializationEventsCache.cs
- ErrorWrapper.cs
- TargetPerspective.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- RegexGroupCollection.cs
- TextBoxAutomationPeer.cs
- HiddenField.cs
- AdornerHitTestResult.cs
- TheQuery.cs
- ListBase.cs
- TemplateBamlRecordReader.cs
- DesigntimeLicenseContextSerializer.cs
- IOThreadTimer.cs
- ArgIterator.cs
- RegexMatch.cs
- ValidationError.cs
- SmtpDigestAuthenticationModule.cs
- SqlDeflator.cs
- wgx_sdk_version.cs
- TemplateKeyConverter.cs
- StateChangeEvent.cs
- Parsers.cs
- Win32Exception.cs
- SqlGenerator.cs
- BaseCodeDomTreeGenerator.cs
- SqlInfoMessageEvent.cs
- WebPartEventArgs.cs
- BuildProvider.cs
- TargetControlTypeAttribute.cs
- ProcessHost.cs
- IFlowDocumentViewer.cs
- TlsSspiNegotiation.cs
- Underline.cs
- Throw.cs
- ContextMenu.cs
- ComponentResourceKeyConverter.cs
- XappLauncher.cs
- SignatureResourceHelper.cs
- HttpResponseBase.cs
- AttributeSetAction.cs
- ThemeDirectoryCompiler.cs
- EdmValidator.cs
- JoinCqlBlock.cs
- XPathItem.cs
- XmlTypeMapping.cs
- EventRoute.cs
- DesignColumn.cs
- DebugInfoExpression.cs
- SqlUserDefinedAggregateAttribute.cs
- PropertyDescriptorGridEntry.cs
- CaseStatement.cs
- DataProtection.cs
- ParserHooks.cs
- IdentityModelStringsVersion1.cs
- ProfileGroupSettings.cs
- DesignerSerializationVisibilityAttribute.cs
- ProfilePropertySettingsCollection.cs
- ProxyWebPartConnectionCollection.cs
- SHA256.cs
- JsonWriter.cs
- UIElement.cs
- EntityStoreSchemaGenerator.cs
- LinearGradientBrush.cs
- ColorMap.cs
- PeerNameResolver.cs
- IPCCacheManager.cs
- DesignOnlyAttribute.cs
- ToolStripPanel.cs
- oledbmetadatacolumnnames.cs
- RadioButton.cs